mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
Update pihole.yml
This commit is contained in:
parent
9fd2da7a99
commit
69890b02ca
10
.github/workflows/pihole.yml
vendored
10
.github/workflows/pihole.yml
vendored
@ -6,9 +6,10 @@ name: Pihole Dockerbuild
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
# Triggers the workflow on push or pull request events but only for the master branch
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
push:
|
schedule:
|
||||||
paths:
|
# Runs "at minute 55 past every hour" (see https://crontab.guru)
|
||||||
- run-pihole/Dockerfile
|
- cron: '00 12 1/15 * *'
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buildx:
|
buildx:
|
||||||
@ -33,6 +34,9 @@ jobs:
|
|||||||
|
|
||||||
- name: get latest version
|
- 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"]')
|
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
|
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=$VERSION run-pihole -t boostchicken/pihole:latest -t boostchicken:/pihole:$VERSION --push
|
||||||
|
Loading…
Reference in New Issue
Block a user