Skip to content

Fix typo

Fix typo #248

Workflow file for this run

name: Docker Container Build
# Adapted from https://docs.docker.com/build/ci/github-actions/
on:
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
backend-prod:
name: Backend Production Container
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build
uses: docker/build-push-action@v4
with:
# Should match the "build" subsection's settings in docker-compose.yml
context: ./apps/backend
file: ./apps/backend/backend.Dockerfile
# target: production # this has been commented out due to simpler Dockerfile
frontend-prod:
name: Frontend Production Container
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build
uses: docker/build-push-action@v4
with:
# Should match the "build" subsection's settings in docker-compose.yml
context: ./apps/frontend
file: ./apps/frontend/frontend.Dockerfile
# target: runner # this has been commented out due to simpler Dockerfile
build-args: |
MONGODB_PORT=${{ secrets.MONGODB_PORT }}
MONGODB_USERNAME=${{ secrets.MONGODB_USERNAME }}
MONGODB_PASSWORD=${{ secrets.MONGODB_PASSWORD }}
runner-prod:
name: Runner Production Container
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build
uses: docker/build-push-action@v4
with:
# Should match the "build" subsection's settings in docker-compose.yml
context: ./apps/runner
file: ./apps/runner/runner.Dockerfile
# target: runner # this has been commented out due to simpler Dockerfile