Skip to content

Commit 984452c

Browse files
authored
feat: deploys to ghcr (#3487)
1 parent 471cc19 commit 984452c

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,21 @@ jobs:
9595
with:
9696
username: ${{ secrets.DOCKER_USERNAME }}
9797
password: ${{ secrets.DOCKER_PASSWORD }}
98+
- name: Log in to the Container registry
99+
uses: docker/login-action@v3.3.0
100+
with:
101+
registry: ghcr.io
102+
username: ${{ github.actor }}
103+
password: ${{ secrets.GITHUB_TOKEN }}
98104
- name: Checkout
99105
uses: actions/checkout@v4
100106
- name: Docker meta
101107
id: meta
102108
uses: docker/metadata-action@v5
103109
with:
104-
images: amir20/dozzle
110+
images: |
111+
amir20/dozzle
112+
ghcr.io/amir20/dozzle
105113
- name: Writing certs to file
106114
run: |
107115
echo "${{ secrets.TTL_KEY }}" > shared_key.pem

.github/workflows/dev.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,21 @@ jobs:
1919
with:
2020
username: ${{ secrets.DOCKER_USERNAME }}
2121
password: ${{ secrets.DOCKER_PASSWORD }}
22+
- name: Log in to the Container registry
23+
uses: docker/login-action@v3.3.0
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
2228
- name: Checkout
2329
uses: actions/checkout@v4
2430
- name: Docker meta
2531
id: meta
2632
uses: docker/metadata-action@v5
2733
with:
28-
images: amir20/dozzle
34+
images: |
35+
amir20/dozzle
36+
ghcr.io/amir20/dozzle
2937
- name: Writing certs to file
3038
run: |
3139
echo "${{ secrets.TTL_KEY }}" > shared_key.pem

docs/guide/getting-started.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ networks:
5050
:::
5151
5252
See [swarm mode](/guide/swarm-mode) for more information on running Dozzle in Swarm.
53+
54+
> [!TIP]
55+
> If Docker Hub is blocked in your network, you can use the [GitHub Container Registry](https://ghcr.io/amir20/dozzle:latest) to pull the image. Use `ghcr.io/amir20/dozzle:latest` instead of `amir20/dozzle:latest`.

0 commit comments

Comments
 (0)