From c9a07843d64c0578b89887ca71b249099a177ca4 Mon Sep 17 00:00:00 2001 From: John Dorman <427295+boostchicken@users.noreply.github.com> Date: Fri, 3 Dec 2021 03:12:30 -0800 Subject: [PATCH] Update pihole.yml --- .github/workflows/pihole.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pihole.yml b/.github/workflows/pihole.yml index 22f0b76..1779945 100644 --- a/.github/workflows/pihole.yml +++ b/.github/workflows/pihole.yml @@ -31,13 +31,10 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: get latest version - run: export VERSION=$(curl --silent "https://api.github.com/repos/pi-hole/docker-pi-hole/releases/latest" | jq -r '.["tag_name"]') - + - name: docker check run: docker pull boostchicken/pihole:$VERSION - name: build pihole - run: docker buildx build --platform=linux/amd64,linux/arm64 --build-arg VERSION=$VERSION run-pihole -t boostchicken/pihole:latest -t boostchicken:/pihole:$VERSION --push + run: docker buildx build --platform=linux/amd64,linux/arm64 --build-arg VERSION=$(curl --silent "https://api.github.com/repos/pi-hole/docker-pi-hole/releases/latest" | jq -r '.["tag_name"]') run-pihole -t boostchicken/pihole:latest -t boostchicken:/pihole:$(curl --silent "https://api.github.com/repos/pi-hole/docker-pi-hole/releases/latest" | jq -r '.["tag_name"]') --push