Merge pull request #333 from privacy-scaling-explorations/update-seed #85
This file contains 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: Deploy | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
inputs: | |
build: | |
description: "Build trigger" | |
required: true | |
default: "enable" | |
type: choice | |
options: | |
- enable | |
- disable | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
DATA: ${{ github.event.inputs.build || 'enable' }} | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: arn:aws:iam::490752553772:role/bandada-ecs-deploy-slc | |
role-duration-seconds: 2700 | |
aws-region: eu-central-1 | |
- name: Build and Push images to ECR | |
run: | | |
.github/scripts/build.sh ${{ env.DATA }} | |
- name: Create Deployment | |
run: | | |
.github/scripts/deploy.sh |