Skip to content

Commit

Permalink
target production images in docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
CalPinSW committed Jul 17, 2024
1 parent f969240 commit 48556de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:

- name: Build frontend Docker image
working-directory: frontend
run: docker build --target development --tag calpin/playlist-manager-frontend:prod .
run: docker build --target production --tag calpin/playlist-manager-frontend:prod .
- name: Push frontend Docker image
working-directory: frontend
run: docker push calpin/playlist-manager-frontend:prod

- name: Build backend Docker image
working-directory: backend
run: docker build --target development --tag calpin/playlist-manager-backend:prod .
run: docker build --target production --tag calpin/playlist-manager-backend:prod .
- name: Push backend Docker image
working-directory: backend
run: docker push calpin/playlist-manager-backend:prod
Expand Down
4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
build:
context: frontend
dockerfile: Dockerfile
target: development
target: production
ports:
- "8080:8080"
env_file:
Expand All @@ -21,7 +21,7 @@ services:
build:
context: backend
dockerfile: Dockerfile
target: development
target: production
ports:
- "5000:5000"
env_file:
Expand Down

0 comments on commit 48556de

Please sign in to comment.