-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 1.03 KB
/
cd-storage-bucket.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
name: CD storage bucket
on:
push:
branches:
- 'prod'
- 'preprod'
workflow_dispatch:
jobs:
cd-storage:
if: github.ref_name == 'prod' || github.ref_name == 'preprod'
runs-on: ubuntu-latest
timeout-minutes: 20
env:
AWS_REGION: eu-west-3
steps:
- uses: actions/[email protected]
- uses: hei-school/[email protected]
with:
secrets: ${{ toJSON(secrets) }}
region: ${{ env.AWS_REGION }}
- name: Deploy bucket stack
uses: aws-actions/aws-cloudformation-github-deploy@v1
with:
name: ${{ github.ref_name }}-bucket-poja-sqlite
template: cf-stacks/storage-bucket-stack.yml
tags: "[ { \"Key\": \"app\", \"Value\": \"poja-sqlite\" }, { \"Key\": \"env\", \"Value\": \"${{ github.ref_name }}\" }, { \"Key\": \"user:poja\", \"Value\": \"poja-sqlite\" } ]"
capabilities: CAPABILITY_NAMED_IAM
no-fail-on-empty-changeset: "1"
parameter-overrides:
"Env=${{ github.ref_name }}"