@@ -2,8 +2,13 @@ name: Build Docker Images
2
2
3
3
on :
4
4
schedule :
5
- - cron : ' 0 1 * * *'
5
+ - cron : " 0 1 * * *"
6
6
workflow_dispatch :
7
+ inputs :
8
+ force :
9
+ description : " Force update of all images"
10
+ required : false
11
+ default : " false"
7
12
8
13
defaults :
9
14
run :
@@ -41,21 +46,21 @@ jobs:
41
46
image : ${{ steps.variables.outputs.image }}
42
47
- name : Checkout
43
48
uses : actions/checkout@v4
44
- if : ${{ steps.update.outputs.needs-updating == 'true' }}
49
+ if : ${{ steps.update.outputs.needs-updating == 'true' || inputs.force == 'true ' }}
45
50
- name : Setup QEMU
46
51
uses : docker/setup-qemu-action@v3
47
52
with :
48
53
platforms : arm/v6,arm,arm64,amd64,ppc64le,s390x,386
49
- if : ${{ steps.update.outputs.needs-updating == 'true' }}
54
+ if : ${{ steps.update.outputs.needs-updating == 'true' || inputs.force == 'true' }}
50
55
- name : Docker Buildx
51
56
uses : docker/setup-buildx-action@v3
52
- if : ${{ steps.update.outputs.needs-updating == 'true' }}
57
+ if : ${{ steps.update.outputs.needs-updating == 'true' || inputs.force == 'true' }}
53
58
- name : DockerHub Login
54
59
uses : docker/login-action@v3
55
60
with :
56
61
username : ${{ secrets.DOCKER_USERNAME }}
57
62
password : ${{ secrets.DOCKER_PASSWORD }}
58
- if : ${{ steps.update.outputs.needs-updating == 'true' }}
63
+ if : ${{ steps.update.outputs.needs-updating == 'true' || inputs.force == 'true' }}
59
64
- name : Push to Dockerhub for nginx-hello
60
65
uses : docker/build-push-action@v5
61
66
with :
66
71
push : true
67
72
provenance : true
68
73
sbom : true
69
- if : ${{ steps.update.outputs.needs-updating == 'true' }}
74
+ if : ${{ steps.update.outputs.needs-updating == 'true' || inputs.force == 'true' }}
0 commit comments