mirror of
https://github.com/sujiba/pihole-unbound-hyperlocal.git
synced 2025-07-10 05:45:14 +02:00
added version var
This commit is contained in:
parent
cf11e7c9ed
commit
eb49ca256c
1 changed files with 8 additions and 3 deletions
11
.github/workflows/docker_build_push.yml
vendored
11
.github/workflows/docker_build_push.yml
vendored
|
@ -16,9 +16,14 @@ jobs:
|
|||
with:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||
-
|
||||
name: Set up variables
|
||||
run: |
|
||||
VER=$(cat /docker-build/VERSION)
|
||||
echo "VERSION=$VER" >> $GITHUB_ENV
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
|
@ -27,4 +32,4 @@ jobs:
|
|||
file: ./Dockerfile
|
||||
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pihole-unbound-hyperlocal:`cat VERSION`,${{ secrets.DOCKER_HUB_USERNAME }}/pihole-unbound-hyperlocal:latest
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pihole-unbound-hyperlocal:${{ env.VERSION }},${{ secrets.DOCKER_HUB_USERNAME }}/pihole-unbound-hyperlocal:latest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue