Skip to content

Commit

Permalink
Merge pull request #216 from AutomatingSciencePipeline/docker-build-ci
Browse files Browse the repository at this point in the history
Docker build ci
  • Loading branch information
budak7273 authored May 10, 2023
2 parents 19a5319 + e0bfe7c commit 1ba1508
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 18 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docker Container Build

# Adapted from https://docs.docker.com/build/ci/github-actions/

on:
push:
branches: [ main ]
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:
push: false # Don't push to a container registry (we don't have that set up yet)
# Should match our build settings in docker-compose.yml
context: ./apps/backend
file: ./apps/backend/backend.Dockerfile
target: production
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:
push: false
# Should match our build settings in docker-compose.yml
context: ./apps/frontend
file: ./apps/frontend/frontend.Dockerfile
target: runner
16 changes: 0 additions & 16 deletions .github/workflows/push.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"bierner.markdown-preview-github-styles",

// CI
"me-dutour-mathieu.vscode-github-actions"
"GitHub.vscode-github-actions"
],
"unwantedRecommendations": []
}
2 changes: 1 addition & 1 deletion Monorepo.wiki

0 comments on commit 1ba1508

Please sign in to comment.