Skip to content

Commit

Permalink
Feat: Frontend Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
su-hwani committed May 4, 2024
1 parent a7f124b commit 21632e8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ jobs:
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -f Dockerfile -t ${{ secrets.DOCKER_REPO }}:latest .
docker push ${{ secrets.DOCKER_REPO }}:latest
- name: Frontend Docker build & push to docker repo
run: |
cd frontend
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -f Dockerfile -t ${{ secrets.DOCKER_FRONTEND_REPO }}:latest .
docker push ${{ secrets.DOCKER_FRONTEND_REPO }}:latest
pull-and-deploy:
needs: build-and-push
Expand Down Expand Up @@ -131,6 +138,7 @@ jobs:
fi
sudo docker pull ${{ secrets.DOCKER_REPO }}:latest
sudo docker pull ${{ secrets.DOCKER_FRONTEND_REPO }}:latest
sudo docker image prune -f
Expand Down
9 changes: 9 additions & 0 deletions server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,12 @@ services:
ports:
- "8080:8080"
build: .

frontend:
container_name: frontend
depends_on:
- spring-server
image: suhwani/capstone_frontend:latest
ports:
- "80:80"
build: .

0 comments on commit 21632e8

Please sign in to comment.