File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 62
62
image : ${{ env.distro }}-toolbox
63
63
registry : ${{ env.registry }}
64
64
tags : latest
65
+
66
+ - name : Login to Container Registry
67
+ uses : redhat-actions/podman-login@v1
68
+ if : (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main'
69
+ with :
70
+ registry : ${{ env.registry }}
71
+ username : ${{ env.username }}
72
+ password : ${{ secrets.QUAY_ROBOT_TOKEN }}
73
+
74
+ -
uses :
sigstore/[email protected]
75
+ if : (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main'
76
+
77
+ - name : Sign container image (latest)
78
+ if : (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main'
79
+ run : |
80
+ cosign sign -y --recursive --key env://COSIGN_PRIVATE_KEY ${{ env.registry }}/${{ env.distro }}-toolbox@${{ steps.push-latest.outputs.digest }}
81
+ env :
82
+ COSIGN_EXPERIMENTAL : false
83
+ COSIGN_PRIVATE_KEY : ${{ secrets.COSIGN_PRIVATE_KEY }}
Original file line number Diff line number Diff line change 94
94
image : ${{ env.distro }}-toolbox
95
95
registry : ${{ env.registry }}
96
96
tags : ${{ matrix.release }} latest
97
+
98
+ - name : Login to Container Registry
99
+ uses : redhat-actions/podman-login@v1
100
+ if : (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main'
101
+ with :
102
+ registry : ${{ env.registry }}
103
+ username : ${{ env.username }}
104
+ password : ${{ secrets.QUAY_ROBOT_TOKEN }}
105
+
106
+ -
uses :
sigstore/[email protected]
107
+ if : (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main'
108
+
109
+ - name : Sign container image
110
+ if : (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main' && env.latest_release != matrix.release
111
+ run : |
112
+ cosign sign -y --recursive --key env://COSIGN_PRIVATE_KEY ${{ env.registry }}/${{ env.distro }}-toolbox@${{ steps.push.outputs.digest }}
113
+ env :
114
+ COSIGN_EXPERIMENTAL : false
115
+ COSIGN_PRIVATE_KEY : ${{ secrets.COSIGN_PRIVATE_KEY }}
116
+
117
+ - name : Sign container image (latest)
118
+ if : (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main' && env.latest_release == matrix.release
119
+ run : |
120
+ cosign sign -y --recursive --key env://COSIGN_PRIVATE_KEY ${{ env.registry }}/${{ env.distro }}-toolbox@${{ steps.push-latest.outputs.digest }}
121
+ env :
122
+ COSIGN_EXPERIMENTAL : false
123
+ COSIGN_PRIVATE_KEY : ${{ secrets.COSIGN_PRIVATE_KEY }}
You can’t perform that action at this time.
0 commit comments