unifios-utilities/.github/workflows/pihole-dote.yml

42 lines
1.3 KiB
YAML
Raw Normal View History

2021-11-16 16:17:35 +00:00
# This is a basic workflow to help you get started with Actions
2021-11-16 16:17:55 +00:00
name: Pihole DoTE Dockerbuild
2021-11-16 16:17:35 +00:00
# Controls when the action will run.
on:
workflow_dispatch:
# Triggers the workflow on push or pull request events but only for the master branch
push:
paths:
- run-pihole/DoTE.Dockerfile
2021-12-03 11:56:44 +00:00
schedule:
- cron: "* 12 */14 * *"
2021-11-16 16:17:35 +00:00
jobs:
buildx:
runs-on: ubuntu-latest
steps:
2021-12-03 11:56:44 +00:00
- 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
2021-11-16 16:17:35 +00:00
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
-
name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: build pihole dote
2021-12-03 11:56:44 +00:00
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