Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit

Permalink
chore: remove build in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
amber committed Sep 30, 2024
1 parent c0bb85a commit bf2cc26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
run: |
echo "${{ secrets.EC2_SSH_KEY }}" > private_key && chmod 600 private_key
ssh -i private_key -o StrictHostKeyChecking=no ${{ secrets.EC2_USER }}@${{ secrets.EC2_PUBLIC_IP }} << 'EOF'
git clone https://github.com/SE-Row-1/nus-secondhand-market.git
cd nus-secondhand-market
git checkout setup-infra2
#git clone https://github.com/SE-Row-1/nus-secondhand-market.git
#cd nus-secondhand-market
#git checkout setup-infra2
echo "POSTGRES_USERNAME=${{ secrets.POSTGRES_USERNAME }}" > .env
echo "POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" >> .env
echo "POSTGRES_URL=${{ secrets.POSTGRES_URL }}" >> .env
Expand Down
11 changes: 6 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ version: '3.8'

services:
frontend:
build:
context: frontend
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL}
#build:
# context: frontend
# dockerfile: Dockerfile
# args:
# NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL}
image: z1yoon/nus-secondhand-market-frontend:latest
ports:
- "80:3000"
restart: always
Expand Down

0 comments on commit bf2cc26

Please sign in to comment.