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