-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.41 KB
/
continuous_integration.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: CI
on:
push:
branches:
- develop
pull_request:
workflow_dispatch:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication
permissions:
contents: read
id-token: write
jobs:
build:
name: build
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
steps:
- uses: actions/checkout@v3
- name: Execute cibuild
run: ./scripts/cibuild
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}
if: github.ref == 'refs/heads/develop'
- name: Execute cipublish
run: ./scripts/cipublish
if: github.ref == 'refs/heads/develop'
- name: Execute infra
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
"
if: github.ref == 'refs/heads/develop'
- name: Notify Rollbar
uses: rollbar/[email protected]
with:
environment: 'staging'
version: ${{ github.sha }}
env:
ROLLBAR_ACCESS_TOKEN: ${{ secrets.ROLLBAR_ACCESS_TOKEN }}
ROLLBAR_USERNAME: ${{ github.actor }}
if: github.ref == 'refs/heads/develop'