File tree 3 files changed +28
-3
lines changed
3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 11
11
branch :
12
12
type : string
13
13
required : true
14
+ publish :
15
+ type : boolean
16
+ default : false
17
+ required : false
14
18
15
19
jobs :
16
20
build-image :
@@ -35,15 +39,15 @@ jobs:
35
39
${{ env.IMAGE_NAME }}/Containerfile
36
40
37
41
- name : Log in to ghcr.io
38
- if : github.ref == 'refs/heads/main'
42
+ if : inputs.publish == true
39
43
uses : redhat-actions/podman-login@v1
40
44
with :
41
45
registry : ${{ env.REGISTRY }}
42
46
username : t2linux
43
47
password : ${{ secrets.GITHUB_TOKEN }}
44
48
45
49
- name : Push image to ghcr.io
46
- if : github.ref == 'refs/heads/main'
50
+ if : inputs.publish == true
47
51
uses : redhat-actions/push-to-registry@v2
48
52
with :
49
53
image : ${{ steps.build-image.outputs.image }}
Original file line number Diff line number Diff line change 8
8
uses : ./.github/workflows/build-image.yml
9
9
with :
10
10
image_name : " fedora-ci"
11
- tags : unstable ${{ github.sha }}
11
+ tags : unstable
12
+ publish : ${{ github.ref == 'refs/heads/main' }}
12
13
branch : main
Original file line number Diff line number Diff line change
1
+ name : Update all images
2
+ on :
3
+ schedule :
4
+ # Every day at 2:49 AM
5
+ - cron : " 49 2 * * *"
6
+
7
+ jobs :
8
+ fedora-ci-40 :
9
+ uses : ./.github/workflows/build-image.yml
10
+ with :
11
+ image_name : " fedora-ci"
12
+ tags : " 40"
13
+ branch : f40
14
+
15
+ fedora-ci-unstable :
16
+ uses : ./.github/workflows/build-image.yml
17
+ with :
18
+ image_name : " fedora-ci"
19
+ tags : unstable
20
+ branch : main
You can’t perform that action at this time.
0 commit comments