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
c9a07843d6
commit
2da2939b2e
20
.github/workflows/pihole.yml
vendored
20
.github/workflows/pihole.yml
vendored
@ -1,15 +1,14 @@
|
|||||||
# This is a basic workflow to help you get started with Actions
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
name: BoostChicken Pihole DoH Dockerbuild
|
name: Boostchicken Pihole DoH Dockerbuild
|
||||||
|
|
||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
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
|
||||||
schedule:
|
push:
|
||||||
# Runs "at minute 55 past every hour" (see https://crontab.guru)
|
paths:
|
||||||
- cron: '00 12 1/15 * *'
|
- run-pihole/Dockerfile
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buildx:
|
buildx:
|
||||||
@ -31,10 +30,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: docker check
|
- name: install jq and get latest version
|
||||||
run: docker pull boostchicken/pihole:$VERSION
|
run: sudo apt update && sudo apt install -y curl jq && export VERSION=$(curl --silent "https://api.github.com/repos/pi-hole/docker-pi-hole/releases/latest" | jq -r '.["tag_name"]')
|
||||||
-
|
-
|
||||||
name: build pihole
|
name: build pihole $VERSION
|
||||||
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
|
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…
x
Reference in New Issue
Block a user