File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,17 @@ jobs:
249
249
250
250
# region Image build
251
251
252
+ - name : Unlock encrypted secrets with git-crypt
253
+ if : ${{ inputs.subscription }}
254
+ run : |
255
+ sudo apt-get update
256
+ sudo apt-get install git-crypt
257
+ echo "${GIT_CRYPT_KEY}" | base64 --decode > ./git-crypt-key
258
+ git-crypt unlock ./git-crypt-key
259
+ rm ./git-crypt-key
260
+ env :
261
+ GIT_CRYPT_KEY : ${{ secrets.GIT_CRYPT_KEY }}
262
+
252
263
- name : Add subscriptions from GitHub secret
253
264
if : ${{ inputs.subscription }}
254
265
run : |
Original file line number Diff line number Diff line change 33
33
with :
34
34
ref : " refs/pull/${{ github.event.number }}/merge"
35
35
36
- - name : Unlock encrypted secrets with git-crypt
37
- run : |
38
- sudo apt-get update
39
- sudo apt-get install git-crypt
40
- echo "${GIT_CRYPT_KEY}" | base64 --decode > ./git-crypt-key
41
- git-crypt unlock ./git-crypt-key
42
- rm ./git-crypt-key
43
- env :
44
- GIT_CRYPT_KEY : ${{ secrets.GIT_CRYPT_KEY }}
45
-
46
36
- name : Determine targets to build based on changed files
47
37
run : |
48
38
set -x
53
43
--to-ref '${{ github.event.pull_request.head.ref }}' \
54
44
--only-rhel
55
45
id : gen
56
- env :
57
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58
46
shell : bash
59
47
60
48
build :
You can’t perform that action at this time.
0 commit comments