including static dir is problematic on build #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
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 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout Repository | |
- name: install dependencies and build | |
run: | | |
cd frontend | |
npm install | |
npm run build | |
build-api: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout Repository | |
- name: build | |
run: | | |
cd valhub | |
export DOCKER_BUILDKIT=1 | |
docker build --build-arg admin_username="placeholder" --build-arg admin_password="replaceme" --build-arg djangosk="placeholder" -t pv/val:tag -f Dockerfile . | |
build-worker: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout Repository | |
- name: build | |
run: | | |
cd workers | |
export DOCKER_BUILDKIT=1 | |
docker build -t pv/val:tag -f Dockerfile . |