Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(preview-env): update the preview-env teardown workflow #3870

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
15 changes: 15 additions & 0 deletions .github/workflows/PREVIEW-ENV-TEARDOWN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ jobs:
secrets: |
secret/data/products/connectors/ci/common ARGOCD_TOKEN;
#########################################################################
# Setup: generate github app token
- name: Generate a GitHub token
id: github-token
uses: camunda/infra-global-github-actions/generate-github-app-token-from-vault-secrets@main
with:
github-app-id-vault-key: GITHUB_PREVIEW_ENVIRONMENTS_APP_ID
github-app-id-vault-path: secret/data/products/connectors/ci/common
github-app-private-key-vault-key: GITHUB_PREVIEW_ENVIRONMENTS_APP_PRIVATE_KEY
github-app-private-key-vault-path: secret/data/products/connectors/ci/common
vault-auth-method: approle
vault-auth-role-id: ${{ secrets.VAULT_ROLE_ID }}
vault-auth-secret-id: ${{ secrets.VAULT_SECRET_ID}}
vault-url: ${{ secrets.VAULT_ADDR }}
#########################################################################
# Setup: checkout code. This is required because we are using
# composite actions and deployment manifests.
- name: Checkout
Expand All @@ -50,6 +64,7 @@ jobs:
revision: ${{ env.BRANCH_NAME }}
argocd_token: ${{ steps.secrets.outputs.ARGOCD_TOKEN }}
app_name: connectors-${{ steps.sanitize.outputs.branch_name }}-${{ matrix.product_context }}
github_token: ${{ steps.github-token.outputs.token }}
clean:
if: always() && needs.teardown-preview.result != 'skipped'
uses: camunda/connectors/.github/workflows/PREVIEW-ENV-CLEAN.yml@main
Expand Down
Loading