Skip to content

Commit

Permalink
build: add ghcr.io docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Feb 24, 2025
1 parent c8b594b commit ea045a9
Showing 1 changed file with 36 additions and 5 deletions.
41 changes: 36 additions & 5 deletions .github/workflows/publish-rolling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Parse version
id: parse_version
run: |
Expand All @@ -95,7 +102,9 @@ jobs:
file: ./distribution/containers/Dockerfile.release
platforms: linux/amd64,linux/arm64
push: true
tags: jesec/flood:master
tags: |
jesec/flood:master
ghcr.io/jesec/flood:master
build-args: |
PACKAGE=@jesec/flood
VERSION=${{ steps.parse_version.outputs.BUILD_VERSION }}
Expand Down Expand Up @@ -144,6 +153,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Tag rolling release
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand All @@ -158,7 +174,9 @@ jobs:
target: flood
platforms: linux/amd64,linux/arm64
push: true
tags: jesec/flood:master-dbg
tags: |
jesec/flood:master-dbg
ghcr.io/jesec/flood:master-dbg
- name: Publish rtorrent-flood:master-dbg to Docker Hub
uses: docker/build-push-action@v5
Expand All @@ -168,7 +186,9 @@ jobs:
target: rtorrent-flood
platforms: linux/amd64,linux/arm64
push: true
tags: jesec/rtorrent-flood:master-dbg
tags: |
jesec/rtorrent-flood:master-dbg
ghcr.io/jesec/rtorrent-flood:master-dbg
pkg:
needs: npm
Expand Down Expand Up @@ -274,6 +294,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/download-artifact@v4
with:
name: flood-linux-arm64
Expand All @@ -294,7 +321,9 @@ jobs:
target: flood
platforms: linux/amd64,linux/arm64
push: true
tags: jesec/flood:master-distroless
tags: |
jesec/flood:master-distroless
ghcr.io/jesec/flood:master-distroless
- name: Publish rtorrent-flood:master-distroless to Docker Hub
uses: docker/build-push-action@v5
Expand All @@ -304,4 +333,6 @@ jobs:
target: rtorrent-flood
platforms: linux/amd64,linux/arm64
push: true
tags: jesec/rtorrent-flood:master-distroless
tags: |
jesec/rtorrent-flood:master-distroless
ghcr.io/jesec/rtorrent-flood:master-distroless

0 comments on commit ea045a9

Please sign in to comment.