-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (59 loc) · 1.71 KB
/
nightly_manual.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build and push manually a nightly Pihole-Unbound-image
on:
# cron job to trigger the build on any push to dev
#push:
#branches:
# - paths: 'Dockerfile_nightly'
# - 'main'
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Manually trigger nightly run'
required: false
type: boolean
environment:
description: 'Environment to run tests against'
type: environment
required: true
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Get latest release of pihole docker
uses: rez0n/actions-github-release@main
id: pihole_version
env:
token: ${{ secrets.GITHUB_TOKEN }}
repository: "pi-hole/docker-pi-hole"
type: "nightly"
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
-
name: Build and push nightly image
uses: docker/build-push-action@v3
with:
build-args: PIHOLE_VERSION=${{ steps.pihole_version.outputs.release }}
context: "{{defaultContext}}:pihole-unbound/"
file: "Dockerfile_nightly"
platforms: linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64,linux/386
push: true
tags: pluim003/pihole-unbound:nightly