-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (53 loc) · 1.69 KB
/
validate-pr-web.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: Validate pull request (web)
on:
pull_request:
paths:
- 'apps/web/**'
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/run-workspace-script
with:
workspace: 'web'
script: lint
stylecheck:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/run-workspace-script
with:
workspace: 'web'
script: stylecheck
build:
needs: [lint, stylecheck]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: GarreauArthur/manage-digital-ocean-managed-database-trusted-sources-gh-action@main
with:
action: 'add'
database_id: ${{ secrets.DATABASE_ID }}
digitalocean_token: '${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}'
- name: Build (Docker)
uses: docker/build-push-action@v3
with:
context: .
target: prod
file: ./apps/web/Dockerfile
push: false
no-cache: true
build-args: |
PUBLIC_URL=https://regels.overheid.nl/web/
DATABASE_URL=${{ secrets.DATABASE_URL }}
CMS_URL=http://cms:9001
NEXT_PUBLIC_CMS_URL=https://regels.overheid.nl/cms
WEB_URL=http://localhost:9000
NEXT_PUBLIC_WEB_URL=https://regels.overheid.nl
DATABASE_CA_CERT=${{ secrets.DATABASE_CA_CERT }}
- uses: GarreauArthur/manage-digital-ocean-managed-database-trusted-sources-gh-action@main
with:
action: 'remove'
database_id: ${{ secrets.DATABASE_ID }}
digitalocean_token: '${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}'