Skip to content

Commit 35d1388

Browse files
test - revert back later
1 parent 4183267 commit 35d1388

File tree

1 file changed

+33
-20
lines changed

1 file changed

+33
-20
lines changed

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

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -125,23 +125,36 @@ jobs:
125125
git tag ${{ needs.metadata.outputs.version }}
126126
git push origin ${{ needs.metadata.outputs.version }}
127127
128-
- name: "Notify Slack on PR merge"
129-
uses: slackapi/[email protected]
130-
with:
131-
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
132-
webhook-type: webhook-trigger
133-
payload: |
134-
status: "${{ job.status }}"
135-
link: "https://github.com/${{ github.repository }}/commit/${{ github.sha }}"
136-
Author: "${{ github.actor }}"
137-
title: "Pushed to main"
138-
version: "${{ needs.metadata.outputs.version }}"
139-
140-
regression-tests:
141-
name: "Regression Tests"
142-
needs: publish
143-
uses: ./.github/workflows/regression-tests.yml
144-
with:
145-
ENVIRONMENT: "dev"
146-
VERSION_NUMBER: "main"
147-
secrets: inherit
128+
- name: "Extract S3 bucket name from Terraform output"
129+
id: tf_output
130+
run: |
131+
BUCKET=$(terraform output -raw lambda_artifact_bucket)
132+
echo "bucket_name=$BUCKET" >> $GITHUB_OUTPUT
133+
working-directory: ./infrastructure/stacks/api-layer
134+
135+
- name: "Upload lambda artifact to S3"
136+
run: |
137+
aws s3 cp ./dist/lambda.zip \
138+
s3://${{ steps.tf_output.outputs.bucket_name }}/artifacts/${{ needs.metadata.outputs.tag }}/lambda.zip \
139+
--region eu-west-2
140+
141+
# - name: "Notify Slack on PR merge"
142+
# uses: slackapi/[email protected]
143+
# with:
144+
# webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
145+
# webhook-type: webhook-trigger
146+
# payload: |
147+
# status: "${{ job.status }}"
148+
# link: "https://github.com/${{ github.repository }}/commit/${{ github.sha }}"
149+
# Author: "${{ github.actor }}"
150+
# title: "Pushed to main"
151+
# version: "${{ needs.metadata.outputs.version }}"
152+
153+
# regression-tests:
154+
# name: "Regression Tests"
155+
# needs: publish
156+
# uses: ./.github/workflows/regression-tests.yml
157+
# with:
158+
# ENVIRONMENT: "dev"
159+
# VERSION_NUMBER: "main"
160+
# secrets: inherit

0 commit comments

Comments
 (0)