use metadata-action to handle image tag names
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
55a682a94c
commit
944bc8eb79
|
@ -33,6 +33,13 @@ jobs:
|
|||
name: Get the tag name
|
||||
run: |
|
||||
echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
-
|
||||
name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v3
|
||||
with:
|
||||
images: pihole/pihole
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
@ -55,5 +62,5 @@ jobs:
|
|||
PIHOLE_TAG=${{ env.TAG }}
|
||||
PIHOLE_VERSION=${{ env.TAG }}
|
||||
push: true
|
||||
tags: |
|
||||
pihole/pihole:${{ env.TAG }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
Loading…
Reference in New Issue