ci: skip encryption test if env is not set
If the secret is not present in the run then let's skip it.
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit f014724288)
This commit is contained in:
1 parent
ab35743c4a
commit
6e8e21145b
2 files changed
+2
No files matched your search
@@ -833,6 +833,7 @@ jobs:
|
||||
|
||||
- name: run Encryption KMS IBM Key Protect
|
||||
uses: ./.github/workflows/encryption-pvc-kms-ibm-kp
|
||||
if: "env.IBM_KP_INSTANCE_ID != '' && env.IBM_KP_SERVICE_API_KEY != ''"
|
||||
with:
|
||||
ibm-instance-id: ${{ secrets.IBM_INSTANCE_ID }}
|
||||
ibm-service-api-key: ${{ secrets.IBM_SERVICE_API_KEY }}
|
||||
|
||||
@@ -326,6 +326,7 @@ jobs:
|
||||
|
||||
- name: run Encryption KMS IBM Key Protect
|
||||
uses: ./.github/workflows/encryption-pvc-kms-ibm-kp
|
||||
if: "env.IBM_KP_INSTANCE_ID != '' && env.IBM_KP_SERVICE_API_KEY != ''"
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
ibm-instance-id: ${{ secrets.IBM_KP_INSTANCE_ID }}
|
||||
|
||||
Reference in new issue
Block a user