Skip to content

Commit

Permalink
Fix EB deployment (#101)
Browse files Browse the repository at this point in the history
The `hmanzur/[email protected]` failed to install EB CLI.
The repo[1] has fixes however the maintainer does not seem very
active.  We try a different action to see if we can get this
app deployed to beanstalk.

* Fix github action uses, requires a version
* Fix ebcli timeout config

[1] https://github.com/hmanzur/actions-aws-eb
  • Loading branch information
zaro0508 authored Oct 4, 2023
1 parent b0f5991 commit 26863b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/aws-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
default: 1800
ebcli-command:
type: string
required: true

jobs:
deploy:
Expand All @@ -38,7 +39,6 @@ jobs:
role-to-assume: ${{ inputs.role-to-assume }}
role-session-name: GHA-${{ github.repository_owner }}-${{ github.event.repository.name }}-${{ github.run_id }}
role-duration-seconds: ${{ inputs.role-duration-seconds }}
- name: Deploy
uses: hmanzur/[email protected]
with:
command: ${{ inputs.ebcli-command }}
- uses: sparkplug-app/[email protected]
- name: Deploy to Beanstalk
run: ${{ inputs.ebcli-command }}
8 changes: 4 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ jobs:
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: "deploy --verbose --staged --timeout 30 synapse-login-scipooldev"
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: "deploy --verbose --staged --timeout 30 synapse-login-scipoolprod"
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: "deploy --verbose --staged --timeout 30 synapse-login-bmgfki"
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: "deploy --verbose --staged --timeout 30 synapse-login-strides"
ebcli-command: "eb deploy --region us-east-1 --verbose --staged --timeout 30 synapse-login-strides"

0 comments on commit 26863b3

Please sign in to comment.