Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/aws-scipool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
working-dir:
required: true
type: string
target-environment:
required: true
type: string
sceptre-command:
type: string
default: "sceptre launch prod --prune --yes"
Expand Down Expand Up @@ -58,10 +61,7 @@ jobs:
# SC-26 & SC-219 workaround: dis-associate and re-associate SC actions on every deploy
run: |
cd ${{ inputs.working-dir }}
sceptre delete --yes prod/sc-product-assoc-ec2-linux-docker.yaml
sceptre delete --yes prod/sc-product-assoc-ec2-linux-docker-notebook.yaml
sceptre delete --yes prod/sc-product-assoc-ec2-linux-windows-jumpcloud.yaml
sceptre delete --yes strides/sc-product-assoc-ec2-linux-docker.yaml
sceptre delete --yes strides/sc-product-assoc-ec2-linux-docker-notebook.yaml
sceptre delete --yes strides/sc-product-assoc-ec2-linux-windows-jumpcloud.yaml
sceptre delete --yes ${{ inputs.target-environment }}/sc-product-assoc-ec2-linux-docker.yaml
sceptre delete --yes ${{ inputs.target-environment }}/sc-product-assoc-ec2-linux-docker-notebook.yaml
sceptre delete --yes ${{ inputs.target-environment }}/sc-product-assoc-ec2-linux-windows-jumpcloud.yaml
${{ inputs.sceptre-command }}
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ jobs:
working-dir: "sceptre/strides-ampad-workflows"
sceptre-scipooldev:
needs: [org-formation]
uses: "./.github/workflows/aws-deploy.yaml"
uses: "./.github/workflows/aws-scipool.yaml"
with:
target-environment: "develop"
role-to-assume: "arn:aws:iam::465877038949:role/sagebase-github-oidc-sage-bionetworks-it"
working-dir: "sceptre/scipool"
role-session-name: ${{ needs.org-formation.outputs.role-session-name }}
Expand All @@ -122,6 +123,7 @@ jobs:
needs: [org-formation]
uses: "./.github/workflows/aws-scipool.yaml"
with:
target-environment: "prod"
role-to-assume: "arn:aws:iam::237179673806:role/sagebase-github-oidc-sage-bionetworks-it"
role-session-name: ${{ needs.org-formation.outputs.role-session-name }}
working-dir: "sceptre/scipool"
Expand All @@ -130,6 +132,7 @@ jobs:
needs: [org-formation, sceptre-strides]
uses: "./.github/workflows/aws-scipool.yaml"
with:
target-environment: "strides"
role-to-assume: "arn:aws:iam::423819316185:role/github-oidc-sage-bionetworks-it"
role-session-name: ${{ needs.org-formation.outputs.role-session-name }}
working-dir: "sceptre/scipool"
Expand Down