File tree 1 file changed +19
-4
lines changed
1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 6
6
schedule :
7
7
- cron : 0 0 1 * *
8
8
workflow_dispatch :
9
+ inputs :
10
+ dockerfile :
11
+ description : ' Docker file to build'
12
+ default : ' '
13
+ type : string
9
14
10
15
jobs :
11
16
@@ -14,16 +19,17 @@ jobs:
14
19
runs-on : ubuntu-latest
15
20
16
21
steps :
17
- - uses : actions/checkout@v2
22
+ - uses : actions/checkout@v4
18
23
19
24
- name : Log in to Docker Hub
20
- uses : docker/login-action@v1
25
+ uses : docker/login-action@v3
21
26
with :
22
27
username : ${{ secrets.DOCKER_USERNAME }}
23
28
password : ${{ secrets.DOCKER_PASSWORD }}
24
29
25
30
- name : Push debian image
26
- uses : docker/build-push-action@v2
31
+ if : ${{ github.event_name != 'workflow_dispatch' }}
32
+ uses : docker/build-push-action@v6
27
33
with :
28
34
push : true
29
35
tags : |
32
38
file : debian.Dockerfile
33
39
34
40
- name : Push debian-x64-root image
35
- uses : docker/build-push-action@v2
41
+ if : ${{ github.event_name != 'workflow_dispatch' }}
42
+ uses : docker/build-push-action@v6
36
43
with :
37
44
push : true
38
45
tags : ceifa/garrysmod:debian-x64-root
39
46
file : debian-x64-root.Dockerfile
47
+
48
+ - name : Push manual image
49
+ if : ${{ github.event_name == 'workflow_dispatch' }}
50
+ uses : docker/build-push-action@v6
51
+ with :
52
+ push : true
53
+ tags : ceifa/garrysmod:${{ github.event.inputs.dockerfile }}
54
+ file : ${{ github.event.inputs.dockerfile }}.Dockerfile
You can’t perform that action at this time.
0 commit comments