Skip to content

Commit 39a20d9

Browse files
eli 441 update base-deploy to change artefacts name based on the input ref (#441)
* update base-deploy to change artefacts name based on the input ref * reduce size by keeping botocore and boto3 in sync
1 parent 501e5c4 commit 39a20d9

File tree

5 files changed

+158
-153
lines changed

5 files changed

+158
-153
lines changed

.github/workflows/base-deploy.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff 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"

.github/workflows/cicd-4-preprod-deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ on:
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

0 commit comments

Comments
 (0)