forked from stratospheric-dev/stratospheric
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) 路 1.1 KB
/
02-create-environment.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
# This workflow creates all environment-specific resources that are shared across applications.
# This needs to run before creating an application-specific environment.
name: 02 - Manually create a shared environment
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
on:
workflow_dispatch:
inputs:
environmentName:
description: 'The name of the environment to create.'
required: true
default: 'staging'
jobs:
deploy-network-stack:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-20.04
name: Deploy the network stack
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11.0
- name: NPM install
working-directory: cdk
run: npm install
- name: Deploy network stack
working-directory: cdk
run: npm run network:deploy -- -c environmentName=${{ github.event.inputs.environmentName }}