Skip to content

Commit

Permalink
Merge pull request #1004 from rwaffen/push_to_docker
Browse files Browse the repository at this point in the history
also push to hub.docker.com
  • Loading branch information
rwaffen authored Jan 17, 2024
2 parents abef0ad + 57b1fb4 commit 89f22aa
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,27 @@ jobs:
contents: read
packages: write
steps:
- uses: voxpupuli/gha-build-and-publish-a-container@v1

- name: cut v from tag
env:
TAG: ${{ github.ref_name }}
id: split
run: echo "tag=${TAG:1}" >> $GITHUB_OUTPUT

- uses: voxpupuli/gha-build-and-publish-a-container@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
build_arch: linux/amd64,linux/arm64
docker_username: voxpupulibot
docker_password: ${{ secrets.DOCKERHUB_BOT_PASSWORD}}
tags: |
ghcr.io/${{ github.repository }}:${{ steps.split.outputs.tag }}
ghcr.io/${{ github.repository }}:latest
docker.io/${{ github.repository }}:${{ steps.split.outputs.tag }}
docker.io/${{ github.repository }}:latest
- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: voxpupulibot
password: ${{ secrets.DOCKERHUB_BOT_PASSWORD }}

0 comments on commit 89f22aa

Please sign in to comment.