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 @@ -124,6 +124,17 @@ jobs:
124124 systemctl --user start homebrew.podman.service
125125 echo "PODMAN_SOCK=/run/user/${UID}/podman/podman.sock" >> $GITHUB_ENV
126126
127+ - name : Unlock encrypted secrets with git-crypt
128+ if : ${{ inputs.subscription }}
129+ run : |
130+ sudo apt-get update
131+ sudo apt-get install git-crypt
132+ echo "${GIT_CRYPT_KEY}" | base64 --decode > ./git-crypt-key
133+ git-crypt unlock ./git-crypt-key
134+ rm ./git-crypt-key
135+ env :
136+ GIT_CRYPT_KEY : ${{ secrets.GIT_CRYPT_KEY }}
137+
127138 - name : Add subscriptions from GitHub secret
128139 if : ${{ inputs.subscription }}
129140 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