-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 984 Bytes
/
main.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
name: CI
on:
push:
branches:
- master
- deploy
pull_request:
branches:
- master
jobs:
test:
name: Run tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build containers and run tests
run: |
docker compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app
deploy:
if:
contains('
refs/heads/master
refs/heads/deploy
', github.ref)
needs: test
name: Deploy to AWS
runs-on: ubuntu-20.04
steps:
- 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: us-east-1
- uses: actions/checkout@v2
- id: deploy
uses: webfactory/create-aws-codedeploy-deployment@0d7a684950dae16883a140dd950257958730e0b5
with:
application: bga-payroll