Merge pull request #104 from brucehoff/IT-3558 #47
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: main | |
on: | |
pull_request: | |
branches: ['*'] | |
push: | |
branches: ['*'] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn clean package | |
# Deploy with EB CLI using work around https://stackoverflow.com/a/53364728 | |
deploy-scipooldev: | |
if: github.ref == 'refs/heads/develop' | |
needs: [test] | |
uses: "./.github/workflows/aws-deploy.yaml" | |
with: | |
role-to-assume: "arn:aws:iam::465877038949:role/sagebase-github-oidc-scipool-dev-synapse-login-aws-infra" | |
ebcli-command: "eb deploy --region us-east-1 --verbose --staged --timeout 30 synapse-login-scipooldev" | |
deploy-scipoolprod: | |
if: github.ref == 'refs/heads/prod' | |
needs: [test] | |
uses: "./.github/workflows/aws-deploy.yaml" | |
with: | |
role-to-assume: "arn:aws:iam::237179673806:role/sagebase-github-oidc-scipool-prod-synapse-login-aws-infra" | |
ebcli-command: "eb deploy --region us-east-1 --verbose --staged --timeout 30 synapse-login-scipoolprod" | |
deploy-bmgfki: | |
if: github.ref == 'refs/heads/prod' | |
needs: [test] | |
uses: "./.github/workflows/aws-deploy.yaml" | |
with: | |
role-to-assume: "arn:aws:iam::464102568320:role/sagebase-github-oidc-scipool-prod-synapse-login-aws-infra" | |
ebcli-command: "eb deploy --region us-east-1 --verbose --staged --timeout 30 synapse-login-bmgfki" | |
deploy-strides: | |
if: github.ref == 'refs/heads/prod' | |
needs: [test] | |
uses: "./.github/workflows/aws-deploy.yaml" | |
with: | |
role-to-assume: "arn:aws:iam::423819316185:role/github-oidc-sage-bionetworks" | |
ebcli-command: "eb deploy --region us-east-1 --verbose --staged --timeout 30 synapse-login-strides" |