From 6c5eb5d59478edf8b983c8a13b3ffacce86d5273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20K=C3=B8hler=20Warmdahl?= Date: Wed, 13 Nov 2024 10:50:19 +0100 Subject: [PATCH] Test new login method --- .github/workflows/release.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 104feaa18..16e635535 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,15 +31,18 @@ jobs: login-aws: runs-on: ubuntu-latest outputs: - pass: ${{steps.export-creds.outputs.aut_creds}} + access_key: ${{steps.export-creds.outputs.access_key}} + secret_key: ${{steps.export-creds.outputs.secret_key}} environment: release steps: - name: aws creds uses: aws-actions/configure-aws-credentials@v4 + id: creds with: aws-region: "eu-west-1" role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }} role-session-name: ReleaseDesktopWalletSession + output-credentials: true - name: login to ecr uses: aws-actions/amazon-ecr-login@62f4f872db3836360b72999f4b87f1ff13310f3a @@ -49,8 +52,7 @@ jobs: - name: Export creds id: export-creds run: | - auth_creds=$(cat ${{ env.CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE }} | base64 -w 0) - echo "auth_creds=$auth_creds" >> ${GITHUB_OUTPUT} + echo "access_key=${{steps.creds.outputs.aws-access-key-id}} secret_key=${{steps.creds.outputs.aws-secret-access-key}}" >> ${GITHUB_OUTPUT} release-desktop-wallet-linux: @@ -60,8 +62,8 @@ jobs: container: image: "192549843005.dkr.ecr.eu-west-1.amazonaws.com/concordium/desktop-wallet-ci:latest" credentials: - username: "oauth2accesstoken" - password: ${{needs.login-aws.outputs.pass}} + username: ${{needs.login-aws.outputs.access_key}} + password: ${{needs.login-aws.outputs.secret_key}} steps: - name: echo