Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

also push to hub.docker.com #1004

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}