Update pihole-dote.yml

This commit is contained in:
John Dorman 2021-12-03 03:56:44 -08:00 committed by GitHub
parent 93db968f3d
commit 20493f421f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,11 +9,17 @@ on:
push:
paths:
- run-pihole/DoTE.Dockerfile
schedule:
- cron: "* 12 */14 * *"
jobs:
buildx:
runs-on: ubuntu-latest
steps:
- name: Set the version
id: set_version
run: |
echo VERSION=$(curl --silent "https://api.github.com/repos/pi-hole/docker-pi-hole/releases/latest" | jq -r '.["tag_name"]')>> $GITHUB_ENV
-
name: Checkout
uses: actions/checkout@v2
@ -32,4 +38,4 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: build pihole dote
run: docker buildx build --platform=linux/amd64,linux/arm64 run-pihole -f run-pihole/DoTE.Dockerfile -t boostchicken/pihole-dote:latest --push
run: docker buildx build --platform=linux/amd64,linux/arm64 --build-args VERSION=${{ env.VERSION }} run-pihole -f run-pihole/DoTE.Dockerfile -t boostchicken/pihole-dote:latest -t boostchicken/pihole-dote:${{ env.VERSION }} --push