-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) · 1.06 KB
/
cd-event.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CD event
on:
push:
branches:
- 'prod'
- 'preprod'
workflow_dispatch:
jobs:
cd-event:
if: github.ref_name == 'prod' || github.ref_name == 'preprod'
runs-on: ubuntu-latest
timeout-minutes: 20
env:
AWS_REGION: eu-west-3
steps:
- name: Checkout
uses: actions/checkout@v4.1.6
- uses: hei-school/aws-credentials-setter@v1.0.3
with:
secrets: ${{ toJSON(secrets) }}
region: ${{ env.AWS_REGION }}
- name: Deploy event stack
uses: aws-actions/aws-cloudformation-github-deploy@v1
with:
name: ${{ github.ref_name }}-event-bpartners-annotator
template: cf-stacks/event-stack.yml
tags: "[ { \"Key\": \"app\", \"Value\": \"bpartners-annotator\" }, { \"Key\": \"env\", \"Value\": \"${{ github.ref_name }}\" }, { \"Key\": \"user:poja\", \"Value\": \"bpartners-annotator\" } ]"
capabilities: CAPABILITY_NAMED_IAM
no-fail-on-empty-changeset: "1"
parameter-overrides:
"Env=${{ github.ref_name }}"