Pi-hole (DoTE) #173
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pi-hole (DoTE) | |
| permissions: | |
| contents: read | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - run-pihole/DoTE.Dockerfile | |
| schedule: | |
| - cron: "0 0 */15 * *" | |
| 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@v6.0.2 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3.7.0 | |
| - name: Set up Docker Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@v3.12.0 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3.7.0 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build Pi-hole DoTE image | |
| run: docker buildx build --platform=linux/amd64,linux/arm64 --build-arg VERSION=${{ env.VERSION }} run-pihole -f run-pihole/DoTE.Dockerfile -t boostchicken/pihole-dote:latest -t boostchicken/pihole-dote:${{ env.VERSION }} --push |