File tree Expand file tree Collapse file tree 5 files changed +158
-153
lines changed
Expand file tree Collapse file tree 5 files changed +158
-153
lines changed Original file line number Diff line number Diff line change @@ -220,12 +220,6 @@ jobs:
220220 echo "bucket_name=$BUCKET" >> $GITHUB_OUTPUT
221221 working-directory : ./infrastructure/stacks/api-layer
222222
223- - name : " Upload lambda artifact to S3"
224- run : |
225- aws s3 cp ./dist/lambda.zip \
226- s3://${{ steps.tf_output.outputs.bucket_name }}/artifacts/${{ needs.metadata.outputs.tag }}/lambda.zip \
227- --region eu-west-2
228-
229223 - name : " Validate Feature Toggles"
230224 env :
231225 ENV : ${{ needs.metadata.outputs.environment }}
@@ -245,6 +239,17 @@ jobs:
245239 pip install requests
246240 python scripts/workflow/tag_and_release.py
247241
242+ - name : " Capture release tag"
243+ id : release_tag
244+ run : |
245+ echo "release_tag=$(cat release_tag.txt)" >> $GITHUB_OUTPUT
246+
247+ - name : " Upload lambda artifact to S3"
248+ run : |
249+ aws s3 cp ./dist/lambda.zip \
250+ s3://${{ steps.tf_output.outputs.bucket_name }}/artifacts/${{ steps.release_tag.outputs.release_tag }}/lambda.zip \
251+ --region eu-west-2
252+
248253
249254 regression-tests :
250255 name : " Regression Tests"
Original file line number Diff line number Diff line change 88 workflow_dispatch :
99 inputs :
1010 ref :
11- description : " Branch/ Tag/SHA to deploy to preprod (dev tag)"
11+ description : " Tag to deploy to preprod (dev tag)"
1212 required : true
13- default : " main"
1413 release_type :
1514 description : " Version bump type (use 'rc' to keep the same base and just increment RC)"
1615 required : true
You can’t perform that action at this time.
0 commit comments