Skip to content

Instantly share code, notes, and snippets.

@ranguard
Created November 8, 2019 14:38
Show Gist options
  • Save ranguard/9d45042934ba4679082423997399572a to your computer and use it in GitHub Desktop.
Save ranguard/9d45042934ba4679082423997399572a to your computer and use it in GitHub Desktop.
name: PR Build
# This job runs on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
id: checkout
- name: setup_node
uses: actions/setup-node@v1
with:
version: 10.16
registry-url: https://registry.npmjs.org/
- name: install yarn
run: npm install -g yarn
# This step prints the time.
- name: cdk bootstrap
uses: ./.github/actions/cdk
with:
args: bootstrap
env:
ACTION_WORKING_DIR: "./cdk"
AWS_DEFAULT_REGION: us-east-2
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
- name: cdk deploy
id: cdkdeploy
uses: ./.github/actions/cdk
with:
args: deploy '*' -c subdomain=dev --require-approval never
env:
ACTION_WORKING_DIR: "./cdk"
NODE_PACKAGE_INSTALLER: yarn
AWS_DEFAULT_REGION: us-east-2
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment