File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 2020 working-dir :
2121 required : true
2222 type : string
23+ target-environment :
24+ required : true
25+ type : string
2326 sceptre-command :
2427 type : string
2528 default : " sceptre launch prod --prune --yes"
5861 # SC-26 & SC-219 workaround: dis-associate and re-associate SC actions on every deploy
5962 run : |
6063 cd ${{ inputs.working-dir }}
61- sceptre delete --yes prod/sc-product-assoc-ec2-linux-docker.yaml
62- sceptre delete --yes prod/sc-product-assoc-ec2-linux-docker-notebook.yaml
63- sceptre delete --yes prod/sc-product-assoc-ec2-linux-windows-jumpcloud.yaml
64- sceptre delete --yes strides/sc-product-assoc-ec2-linux-docker.yaml
65- sceptre delete --yes strides/sc-product-assoc-ec2-linux-docker-notebook.yaml
66- sceptre delete --yes strides/sc-product-assoc-ec2-linux-windows-jumpcloud.yaml
64+ sceptre delete --yes ${{ inputs.target-environment }}/sc-product-assoc-ec2-linux-docker.yaml
65+ sceptre delete --yes ${{ inputs.target-environment }}/sc-product-assoc-ec2-linux-docker-notebook.yaml
66+ sceptre delete --yes ${{ inputs.target-environment }}/sc-product-assoc-ec2-linux-windows-jumpcloud.yaml
6767 ${{ inputs.sceptre-command }}
Original file line number Diff line number Diff line change @@ -112,8 +112,9 @@ jobs:
112112 working-dir : " sceptre/strides-ampad-workflows"
113113 sceptre-scipooldev :
114114 needs : [org-formation]
115- uses : " ./.github/workflows/aws-deploy .yaml"
115+ uses : " ./.github/workflows/aws-scipool .yaml"
116116 with :
117+ target-environment : " develop"
117118 role-to-assume : " arn:aws:iam::465877038949:role/sagebase-github-oidc-sage-bionetworks-it"
118119 working-dir : " sceptre/scipool"
119120 role-session-name : ${{ needs.org-formation.outputs.role-session-name }}
@@ -122,6 +123,7 @@ jobs:
122123 needs : [org-formation]
123124 uses : " ./.github/workflows/aws-scipool.yaml"
124125 with :
126+ target-environment : " prod"
125127 role-to-assume : " arn:aws:iam::237179673806:role/sagebase-github-oidc-sage-bionetworks-it"
126128 role-session-name : ${{ needs.org-formation.outputs.role-session-name }}
127129 working-dir : " sceptre/scipool"
@@ -130,6 +132,7 @@ jobs:
130132 needs : [org-formation, sceptre-strides]
131133 uses : " ./.github/workflows/aws-scipool.yaml"
132134 with :
135+ target-environment : " strides"
133136 role-to-assume : " arn:aws:iam::423819316185:role/github-oidc-sage-bionetworks-it"
134137 role-session-name : ${{ needs.org-formation.outputs.role-session-name }}
135138 working-dir : " sceptre/scipool"
You can’t perform that action at this time.
0 commit comments