-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.99 KB
/
deploy-prod.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Deploy to prod
on:
push:
branches:
- main
workflow_dispatch:
inputs:
APPLICATION_STACK_NAME:
type: string
description: The name to give to the application stack.
default: s1-orbits
BUCKET_STACK_NAME:
type: string
description: The name to give to the bucket stack.
default: s1-orbits-bucket
BUCKET_NAME:
type: string
description: The name to give to the bucket.
default: s1-orbits
DOMAIN_NAME:
type: string
description: The domain name for the API.
default: s1-orbits.asf.alaska.edu
concurrency: deploy-prod
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: prod
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/deploy
with:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CLOUDFORMATION_ROLE_ARN: ${{ secrets.CLOUDFORMATION_ROLE_ARN }}
OPENDATA_AWS_ACCESS_KEY_ID: ${{ secrets.OPENDATA_AWS_ACCESS_KEY_ID }}
OPENDATA_AWS_SECRET_ACCESS_KEY: ${{ secrets.OPENDATA_AWS_SECRET_ACCESS_KEY }}
OPENDATA_CLOUDFORMATION_ROLE_ARN: ${{ secrets.OPENDATA_CLOUDFORMATION_ROLE_ARN }}
AWS_APPLICATION_ACCOUNT_ID: ${{ secrets.AWS_APPLICATION_ACCOUNT_ID }}
CERTIFICATE_ARN: ${{ secrets.CERTIFICATE_ARN }}
CDSE_USERNAME: ${{ secrets.CDSE_USERNAME }}
CDSE_PASSWORD: ${{ secrets.CDSE_PASSWORD }}
BUCKET_STACK_NAME: ${{ github.event.inputs.BUCKET_STACK_NAME || 's1-orbits-bucket' }}
APP_STACK_NAME: ${{ github.event.inputs.APPLICATION_STACK_NAME || 's1-orbits' }}
BUCKET_NAME: ${{ github.event.inputs.BUCKET_NAME || 's1-orbits' }}
DOMAIN_NAME: ${{ github.event.inputs.DOMAIN_NAME || 's1-orbits.asf.alaska.edu' }}
OPENDATA_TEMPLATE_BUCKET: cf-templates-250jrbt1c7xh-us-west-2
TEMPLATE_BUCKET: cf-templates-aubvn3i9olmk-us-west-2