mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2026-04-20 00:39:56 +01:00
use metadata-action to handle image tag names
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
11
.github/workflows/test-and-build.yaml
vendored
11
.github/workflows/test-and-build.yaml
vendored
@@ -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 }}
|
||||
Reference in New Issue
Block a user