-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (31 loc) · 1.02 KB
/
release.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
name: Release
on:
workflow_dispatch:
inputs:
git_commit:
description: 'Short Git commit hash to deploy to production'
required: true
jobs:
release:
name: release
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
GIT_COMMIT: ${{ github.event.inputs.git_commit }}
IOW_BOUNDARY_TOOL_SETTINGS_BUCKET: iow-boundary-tool-production-config-us-east-1
steps:
- uses: actions/checkout@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Set up environment
run: ./scripts/bootstrap
- run: |
docker-compose -f docker-compose.ci.yml run --rm terraform -c "
# Unset this to avoid a ProfileNotFound exception from the AWS CLI.
unset AWS_PROFILE
./scripts/infra plan
./scripts/infra apply
"