Skip to content

Merge pull request #1049 from voxpupuli/rel540 #69

Merge pull request #1049 from voxpupuli/rel540

Merge pull request #1049 from voxpupuli/rel540 #69

Workflow file for this run

name: publish 🐳 Docker image
on:
push:
tags:
- "v*"
jobs:
build-and-push-container:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- 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:
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@v4
with:
username: voxpupulibot
password: ${{ secrets.DOCKERHUB_BOT_PASSWORD }}