Skip to content

Commit

Permalink
Test new login method
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Nov 13, 2024
1 parent a8dcbe8 commit 6c5eb5d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 6c5eb5d

Please sign in to comment.