-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (26 loc) · 979 Bytes
/
push.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: On push
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker-compose -f docker-compose.test.yml up -d --build
- run: sleep 10
- run: docker-compose -f docker-compose.test.yml exec -T web curl -f -LI http://localhost:3000/healthcheck
- run: docker-compose -f docker-compose.test.yml exec -T web yarn playwright install --with-deps
- run: docker-compose -f docker-compose.test.yml exec -T web yarn playwright test
- run: docker-compose -f docker-compose.test.yml down
deploy_production:
needs: test
if: ${{ github.ref == 'refs/heads/v2' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: zenato/docker-action@master
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
repository: ${{ secrets.REGISTRY_REPO }}
registry: ${{ secrets.REGISTRY_URL }}
tag: beta