Skip to content

Commit

Permalink
migrate docker-compose calls in ci and cd to docker compose calls and…
Browse files Browse the repository at this point in the history
… make sure images are built rather then dowloaded
  • Loading branch information
Wolkenfarmer committed Sep 5, 2024
1 parent 28b0f9e commit f9754c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- name: Build frontend Docker container
run: |
cd ./frontend/
docker compose --env-file .env.dev build
docker compose --env-file .env.dev up -d
- name: Login to GitHub Container Registry
Expand All @@ -43,6 +44,7 @@ jobs:
- name: Build backend Docker containers
run: |
cd ./backend/dps_training_k/
docker compose --env-file .env.dev build
docker compose --env-file .env.dev up -d
- name: Login to GitHub Container Registry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
- name: Build and push frontend Docker images
run: |
cd ./frontend/
docker-compose --env-file .env.prod build
docker compose --env-file .env.prod build
docker tag dps_training_k-frontend ghcr.io/hpi-sam/dps_training_k-frontend:latest
docker push ghcr.io/hpi-sam/dps_training_k-frontend:latest
- name: Build and push backend Docker images
run: |
cd ./backend/dps_training_k/
docker-compose --env-file .env.prod build
docker compose --env-file .env.prod build
docker tag dps_training_k-django ghcr.io/hpi-sam/dps_training_k-django:latest
docker push ghcr.io/hpi-sam/dps_training_k-django:latest
docker tag dps_training_k-celeryworker ghcr.io/hpi-sam/dps_training_k-celeryworker:latest
Expand Down

0 comments on commit f9754c7

Please sign in to comment.