Skip to content

Commit 257231e

Browse files
trim21jesec
authored andcommitted
build: add ghcr.io docker image
1 parent d4c6af1 commit 257231e

File tree

1 file changed

+36
-5
lines changed

1 file changed

+36
-5
lines changed

.github/workflows/publish-rolling.yml

+36-5
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ jobs:
8383
username: ${{ secrets.DOCKERHUB_USERNAME }}
8484
password: ${{ secrets.DOCKERHUB_TOKEN }}
8585

86+
- name: Login to Docker Hub
87+
uses: docker/login-action@v3
88+
with:
89+
registry: ghcr.io
90+
username: ${{ github.actor }}
91+
password: ${{ secrets.GITHUB_TOKEN }}
92+
8693
- name: Parse version
8794
id: parse_version
8895
run: |
@@ -95,7 +102,9 @@ jobs:
95102
file: ./distribution/containers/Dockerfile.release
96103
platforms: linux/amd64,linux/arm64
97104
push: true
98-
tags: jesec/flood:master
105+
tags: |
106+
jesec/flood:master
107+
ghcr.io/jesec/flood:master
99108
build-args: |
100109
PACKAGE=@jesec/flood
101110
VERSION=${{ steps.parse_version.outputs.BUILD_VERSION }}
@@ -144,6 +153,13 @@ jobs:
144153
username: ${{ secrets.DOCKERHUB_USERNAME }}
145154
password: ${{ secrets.DOCKERHUB_TOKEN }}
146155

156+
- name: Login to Docker Hub
157+
uses: docker/login-action@v3
158+
with:
159+
registry: ghcr.io
160+
username: ${{ github.actor }}
161+
password: ${{ secrets.GITHUB_TOKEN }}
162+
147163
- name: Tag rolling release
148164
run: |
149165
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
@@ -158,7 +174,9 @@ jobs:
158174
target: flood
159175
platforms: linux/amd64,linux/arm64
160176
push: true
161-
tags: jesec/flood:master-dbg
177+
tags: |
178+
jesec/flood:master-dbg
179+
ghcr.io/jesec/flood:master-dbg
162180
163181
- name: Publish rtorrent-flood:master-dbg to Docker Hub
164182
uses: docker/build-push-action@v5
@@ -168,7 +186,9 @@ jobs:
168186
target: rtorrent-flood
169187
platforms: linux/amd64,linux/arm64
170188
push: true
171-
tags: jesec/rtorrent-flood:master-dbg
189+
tags: |
190+
jesec/rtorrent-flood:master-dbg
191+
ghcr.io/jesec/rtorrent-flood:master-dbg
172192
173193
pkg:
174194
needs: npm
@@ -274,6 +294,13 @@ jobs:
274294
username: ${{ secrets.DOCKERHUB_USERNAME }}
275295
password: ${{ secrets.DOCKERHUB_TOKEN }}
276296

297+
- name: Login to Docker Hub
298+
uses: docker/login-action@v3
299+
with:
300+
registry: ghcr.io
301+
username: ${{ github.actor }}
302+
password: ${{ secrets.GITHUB_TOKEN }}
303+
277304
- uses: actions/download-artifact@v4
278305
with:
279306
name: flood-linux-arm64
@@ -294,7 +321,9 @@ jobs:
294321
target: flood
295322
platforms: linux/amd64,linux/arm64
296323
push: true
297-
tags: jesec/flood:master-distroless
324+
tags: |
325+
jesec/flood:master-distroless
326+
ghcr.io/jesec/flood:master-distroless
298327
299328
- name: Publish rtorrent-flood:master-distroless to Docker Hub
300329
uses: docker/build-push-action@v5
@@ -304,4 +333,6 @@ jobs:
304333
target: rtorrent-flood
305334
platforms: linux/amd64,linux/arm64
306335
push: true
307-
tags: jesec/rtorrent-flood:master-distroless
336+
tags: |
337+
jesec/rtorrent-flood:master-distroless
338+
ghcr.io/jesec/rtorrent-flood:master-distroless

0 commit comments

Comments
 (0)