Skip to content

Commit 897f5d7

Browse files
ELI-442 upload artifacts to github with tags and reuse (#394)
* upload artifacts to github with tags * sync test with dev artifact * remove action that is not req
1 parent 52d14b5 commit 897f5d7

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/cicd-2-publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ jobs:
8080
make dependencies install-python
8181
make build
8282
83-
- name: "Upload lambda artefact"
83+
- name: "Upload lambda artefact for cross-workflow use"
8484
uses: actions/upload-artifact@v4
8585
with:
86-
name: lambda
86+
name: lambda-${{ needs.metadata.outputs.version }}
8787
path: dist/lambda.zip
8888

8989
- name: "Download Built Lambdas"
9090
uses: actions/download-artifact@v5
9191
with:
92-
name: lambda
92+
name: lambda-${{ needs.metadata.outputs.version }}
9393
path: ./build
9494

9595
- name: "Configure AWS Credentials"

.github/workflows/cicd-3-test-deploy.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ jobs:
7878
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/service-roles/github-actions-api-deployment-role
7979
aws-region: eu-west-2
8080

81-
- name: "Build lambda artefact (rebuild in TEST)"
82-
run: |
83-
make dependencies install-python
84-
make build
81+
- name: "Download lambda artefact from dev workflow"
82+
uses: actions/download-artifact@v5
83+
with:
84+
name: lambda-${{ needs.metadata.outputs.tag }}
85+
path: ./build
86+
run-id: ${{ github.event.workflow_run.id }}
8587

8688
- name: "Terraform Apply (TEST)"
8789
env:

0 commit comments

Comments
 (0)