File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 66 schedule :
77 - cron : 0 0 1 * *
88 workflow_dispatch :
9+ inputs :
10+ dockerfile :
11+ description : ' Docker file to build'
12+ default : ' '
13+ type : string
914
1015jobs :
1116
@@ -14,16 +19,17 @@ jobs:
1419 runs-on : ubuntu-latest
1520
1621 steps :
17- - uses : actions/checkout@v2
22+ - uses : actions/checkout@v4
1823
1924 - name : Log in to Docker Hub
20- uses : docker/login-action@v1
25+ uses : docker/login-action@v3
2126 with :
2227 username : ${{ secrets.DOCKER_USERNAME }}
2328 password : ${{ secrets.DOCKER_PASSWORD }}
2429
2530 - 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
2733 with :
2834 push : true
2935 tags : |
3238 file : debian.Dockerfile
3339
3440 - 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
3643 with :
3744 push : true
3845 tags : ceifa/garrysmod:debian-x64-root
3946 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