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