authenticate with cloud providers

This commit is contained in:
miampf 2024-02-08 15:01:54 +01:00
parent 7f1e13f7b2
commit 69bad3430d
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C
2 changed files with 20 additions and 0 deletions

View File

@ -8,10 +8,29 @@ inputs:
encryptionSecret:
description: 'The secret to use for decrypting the artifacts.'
required: true
azure_credentials:
description: "Credentials authorized to create Constellation on Azure."
required: true
runs:
using: "composite"
steps:
- name: Authenticate AWS
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
with:
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ECluster
aws-region: eu-central-1
- name: Authenticate Azure
uses: ./.github/actions/login_azure
with:
azure_credentials: ${{ inputs.azure_credentials }}
- name: Authenticate GCP
uses: ./.github/actions/login_gcp
with:
service_account: "infrastructure-e2e@constellation-e2e.iam.gserviceaccount.com"
- name: Install unzip
uses: ./.github/actions/setup_bazel_nix
with:

View File

@ -20,3 +20,4 @@ jobs:
with:
ghToken: ${{ secrets.GITHUB_TOKEN }}
encryptionSecret: ${{ secrets.ARTIFACT_ENCRYPT_PASSWD }}
azure_credentials: ${{ secrets.AZURE_E2E_CLUSTER_CREDENTIALS }}