ci: fix encryption test condition
For the "if" to work we need to bring the env in the step with the "env"
keyword. Otherwise, the env is never imported and the condition is
always false.
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 802a86ccd5)
This commit is contained in:
1 parent
b7bbb2198c
commit
a7f48d7cd2
2 files changed
+7
-1
No files matched your search
@@ -838,9 +838,12 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: run Encryption KMS IBM Key Protect
|
||||
- name: run encryption KMS IBM Key Protect
|
||||
uses: ./.github/workflows/encryption-pvc-kms-ibm-kp
|
||||
if: "env.IBM_KP_SERVICE_INSTANCE_ID != '' && env.IBM_KP_SERVICE_API_KEY != ''"
|
||||
env:
|
||||
IBM_KP_SERVICE_INSTANCE_ID: ${{ secrets.IBM_INSTANCE_ID }}
|
||||
IBM_KP_SERVICE_API_KEY: ${{ secrets.IBM_SERVICE_API_KEY }}
|
||||
with:
|
||||
ibm-instance-id: ${{ secrets.IBM_INSTANCE_ID }}
|
||||
ibm-service-api-key: ${{ secrets.IBM_SERVICE_API_KEY }}
|
||||
|
||||
@@ -327,6 +327,9 @@ jobs:
|
||||
- name: run Encryption KMS IBM Key Protect
|
||||
uses: ./.github/workflows/encryption-pvc-kms-ibm-kp
|
||||
if: "env.IBM_KP_SERVICE_INSTANCE_ID != '' && env.IBM_KP_SERVICE_API_KEY != ''"
|
||||
env:
|
||||
IBM_KP_SERVICE_INSTANCE_ID: ${{ secrets.IBM_INSTANCE_ID }}
|
||||
IBM_KP_SERVICE_API_KEY: ${{ secrets.IBM_SERVICE_API_KEY }}
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
ibm-instance-id: ${{ secrets.IBM_KP_INSTANCE_ID }}
|
||||
|
||||
Reference in new issue
Block a user