-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (58 loc) · 1.58 KB
/
build.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build and Test
on:
push:
workflow_dispatch:
env:
applicationfolder: valhub
AWS_REGION: us-west-2
S3BUCKET: pv-validation-hub-bucket
DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }}
jobs:
build-fe:
name: Build and Test Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout Repository
- name: install dependencies and build
run: |
cd frontend
cp .env.example .env
npm install
npm run build
- name: run tests
run: |
cd frontend
npm run test
build-api:
name: Build and Test API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout Repository
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./valhub"
version: "24.2.0"
- name: build
run: |
cd valhub
export DOCKER_BUILDKIT=1
docker build --build-arg admin_username="placeholder" --build-arg admin_password="placeholder" --build-arg djangosk="${{ env.DJANGO_SECRET_KEY }}" -t pv/val:tag -f Dockerfile .
build-worker:
name: Build and Test Worker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout Repository
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./workers"
version: "24.2.0"
- name: build
run: |
cd workers
export DOCKER_BUILDKIT=1
docker build -t pv/val:tag -f Dockerfile .