Bump erb from 6.0.2 to 6.0.4 (#196) #131
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Upload Artifacts to S3 | |
| on: | |
| push: | |
| branches: [infra, develop] | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| name: Upload to AWS | |
| env: | |
| AWS_DEFAULT_REGION: eu-west-2 | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # actions/checkout@v6 see https://github.com/actions/checkout/releases/tag/v6 | |
| - name: Confirm AWS destinations for deployments | |
| run: echo AWS_GITHUB_ACTIONS_DEPLOY_ROLE="${{ secrets.AWS_GITHUB_ACTIONS_DEPLOY_ROLE }}", AWS_GITHUB_ACTIONS_S3_BUCKET="${{ secrets.AWS_GITHUB_ACTIONS_S3_BUCKET }}" | |
| - run: 'echo -n "$AWS_GITHUB_ACTIONS_DEPLOY_ROLE" | wc' | |
| shell: bash | |
| env: | |
| AWS_GITHUB_ACTIONS_DEPLOY_ROLE: ${{secrets.AWS_GITHUB_ACTIONS_DEPLOY_ROLE}} | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # aws-actions/configure-aws-credentials@v1 see https://github.com/aws-actions/configure-aws-credentials/releases/tag/v1 | |
| with: | |
| # role-to-assume: arn:aws:iam::[aws-account-id]:role/dms-github-actions-deploy-role | |
| # To find the role name, login to AWS Openstack Dev IAM and search for | |
| # dms-github-actions-deploy-role | |
| role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_DEPLOY_ROLE }} | |
| role-session-name: GitHubActions-${{ github.run_id }} | |
| aws-region: ${{env.AWS_DEFAULT_REGION}} | |
| - name: Zip artifacts | |
| uses: thedoctor0/zip-release@b57d897cb5d60cb78b51a507f63fa184cfe35554 # thedoctor0/zip-release@master see https://github.com/TheDoctor0/zip-release/tree/master | |
| with: | |
| type: "zip" | |
| filename: "mbis_app.zip" | |
| - name: Upload to AWS S3 | |
| run: | | |
| echo "Uploading artifacts to $env.PROFILE environment." | |
| # aws s3 cp mbis_app.zip s3://ndrs-mbis-eu-west-2-[aws-account-id]-state-bucket/ | |
| # To find the account id, use AWS Openstack Dev | |
| aws s3 cp mbis_app.zip "${{ secrets.AWS_GITHUB_ACTIONS_S3_BUCKET }}" |