Skip to content

Test new login method #8

Test new login method

Test new login method #8

Workflow file for this run

name: Concordium desktop wallet release
on:
workflow_dispatch:
inputs:
service:
type: choice
description: Choose which workflow should be ran
options:
- desktop-wallet-windows
- release-desktop-wallet-linux
push:
branches:
- ekw/SRE-1001/release-desktop-wallet
tags:
- desktop-wallet-*/*
env:
BASE_IMAGE_VERSION: "rust-1.82_ghc-9.6.6-1"
STATIC_NODE_BINARY_IMAGE_NAME: 'static-node-binaries'
AWS_ROLE_TO_ASSUME: "arn:aws:iam::192549843005:role/github_concordium-desktop-wallet"
S3_BUCKET: "s3://desktopwallet.concordium.com/"
ECR_REPO: "192549843005.dkr.ecr.eu-west-1.amazonaws.com/concordium/desktop-wallet-ci"
permissions:
id-token: write
contents: read
jobs:
login-aws:
runs-on: ubuntu-latest
outputs:
pass: ${{steps.export-creds.outputs.aut_creds}}
environment: release
steps:
- name: aws creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: "eu-west-1"
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
role-session-name: ReleaseDesktopWalletSession
- name: login to ecr
uses: aws-actions/amazon-ecr-login@62f4f872db3836360b72999f4b87f1ff13310f3a
with:
registry: "192549843005.dkr.ecr.eu-west-1.amazonaws.com"
- 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}
release-desktop-wallet-linux:
environment: release
needs: login-aws
runs-on: ubuntu-latest
container:
image: "192549843005.dkr.ecr.eu-west-1.amazonaws.com/concordium/desktop-wallet-ci:latest"
credentials:
username: "oauth2accesstoken"
password: ${{needs.login-aws.aoutputs.pass}}
steps:
- name: echo
run: |
node --version