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:
249249
250250 # region Image build
251251
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+
252263 - name : Add subscriptions from GitHub secret
253264 if : ${{ inputs.subscription }}
254265 run : |
Original file line number Diff line number Diff line change 3333 with :
3434 ref : " refs/pull/${{ github.event.number }}/merge"
3535
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-
4636 - name : Determine targets to build based on changed files
4737 run : |
4838 set -x
5343 --to-ref '${{ github.event.pull_request.head.ref }}' \
5444 --only-rhel
5545 id : gen
56- env :
57- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5846 shell : bash
5947
6048 build :
You can’t perform that action at this time.
0 commit comments