Skip to content

Commit

Permalink
Merge pull request #118 from boostcampwm-2024/back/main
Browse files Browse the repository at this point in the history
[BE/FE] 3주차 배포
  • Loading branch information
jinddings authored Nov 14, 2024
2 parents 8622129 + 09478ac commit 93aca1b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/deply-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
- name: Create .env file
run: |
touch ./${{ matrix.app.dir }}/.env
echo "${{ secrets.ENV }}" > ./${{matrix.app.dir}}/.env
if [ "${{ matrix.app.name }}" = "be" ]; then
echo "${{ secrets.ENV }}" > ./${{matrix.app.dir}}/.env
else
echo "${{ secrets.ENV_FE }}" > ./${{matrix.app.dir}}/.env
fi
- name: Install dependencies
working-directory: ./${{matrix.app.dir}}
Expand Down Expand Up @@ -104,7 +108,12 @@ jobs:
port: 22
script: |
docker system prune -af
echo "${{ secrets.ENV }}" > .env
if [ "${{ matrix.app.name }}" = "be" ]; then
echo "${{ secrets.ENV }}" > .env
else
echo "${{ secrets.ENV_FE }}" > .env
fi
docker network create juga-network || true
Expand Down

0 comments on commit 93aca1b

Please sign in to comment.