File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -19,26 +19,27 @@ jobs:
19
19
packages : write
20
20
contents : read
21
21
steps :
22
- - uses : actions/checkout@v4
22
+ - name : Checkout
23
+ uses : actions/checkout@v4
23
24
24
25
- name : Use the same PHP config as the contributor containers
25
26
run : cp -r docker-{contributor,gitlabci}/php-config
26
27
27
28
- name : Log in to GitHub Container registry (possibly at fork)
28
- uses : docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
29
+ uses : docker/login-action@v3
29
30
with :
30
31
registry : ghcr.io
31
32
username : ${{ github.actor }}
32
33
password : ${{ secrets.GITHUB_TOKEN }}
33
34
34
35
- name : Extract metadata (tags, labels) for Docker
35
36
id : meta
36
- uses : docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
37
+ uses : docker/metadata-action@v5
37
38
with :
38
39
images : ghcr.io/${{ github.repository }}
39
40
40
41
- name : Build and push Docker images
41
- uses : docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
42
+ uses : docker/build-push-action@v5
42
43
with :
43
44
context : " ./docker-gitlabci"
44
45
push : true
Original file line number Diff line number Diff line change 1
1
name : ' Build GitLab CI container (Release)'
2
2
3
3
on :
4
+ schedule :
5
+ - cron : " 4 3 * * 5"
4
6
push :
5
7
branches :
6
8
- main
@@ -14,26 +16,26 @@ jobs:
14
16
packages : write
15
17
contents : read
16
18
steps :
17
- - uses : actions/checkout@v4
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
18
21
19
22
- name : Use the same PHP config as the contributor containers
20
23
run : cp -r docker-{contributor,gitlabci}/php-config
21
24
22
25
- name : Log in to Docker Container registry
23
- if : github.ref == 'refs/heads/main'
24
- uses : docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
26
+ uses : docker/login-action@v3
25
27
with :
26
28
username : ${{ secrets.DOCKERHUB_USERNAME }}
27
29
password : ${{ secrets.DOCKERHUB_TOKEN }}
28
30
29
31
- name : Extract metadata (tags, labels) for Docker
30
32
id : meta
31
- uses : docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
33
+ uses : docker/metadata-action@v5
32
34
with :
33
35
images : domjudge/gitlabci
34
36
35
37
- name : Build and push Docker images
36
- uses : docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
38
+ uses : docker/build-push-action@v5
37
39
with :
38
40
context : " ./docker-gitlabci"
39
41
push : true
You can’t perform that action at this time.
0 commit comments