Skip to content

Commit

Permalink
ci: set secrets correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
msanft committed Oct 22, 2024
1 parent 2ddcacd commit 0fd7f05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/actions/e2e_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ inputs:
encryptionSecret:
description: "The secret to use for decrypting the artifact."
required: true
openStackCloudsYaml:
description: "The contents of ~/.config/openstack/clouds.yaml"
required: true
stackitUat:
description: "The UAT for STACKIT"
required: true

outputs:
kubeconfig:
Expand Down Expand Up @@ -233,13 +239,13 @@ runs:
if: inputs.cloudProvider == 'stackit'
uses: ./.github/actions/login_openstack
with:
clouds_yaml: ${{ secrets.STACKIT_IMAGE_UPLOAD_CLOUDS_YAML }}
clouds_yaml: ${{inputs.openStackCloudsYaml }}

- name: Login to STACKIT
if: inputs.cloudProvider == 'stackit'
uses: ./.github/actions/login_stackit
with:
serviceAccountToken: ${{ secrets.STACKIT_SERVICE_ACCOUNT_TOKEN }}
serviceAccountToken: ${{ inputs.stackitUat }}

- name: Create prefix
id: create-prefix
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ jobs:
marketplaceImageVersion: ${{ inputs.marketplaceImageVersion }}
force: ${{ inputs.force }}
encryptionSecret: ${{ secrets.ARTIFACT_ENCRYPT_PASSWD }}
openStackCloudsYaml: ${{ secrets.STACKIT_IMAGE_UPLOAD_CLOUDS_YAML }}
stackitUat: ${{ secrets.STACKIT_SERVICE_ACCOUNT_TOKEN }}

- name: Always terminate cluster
if: always()
Expand Down

0 comments on commit 0fd7f05

Please sign in to comment.