Skip to content

Commit

Permalink
Merge pull request #62 from 100-hours-a-week/feature/deploy
Browse files Browse the repository at this point in the history
👷 github-actions 안쓰는 도커 이미지 제거 구문 추가
  • Loading branch information
49EHyeon42 authored Aug 29, 2024
2 parents 66b60dd + 24257dc commit 368ccc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/github-actions-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
echo "${{ secrets.ENV_FILE_DEV }}" > deploy/front/.env
echo "${{ secrets.GHCR_TOKEN }}" | sudo docker login ghcr.io -u ${{ secrets.GIT_USER }} --password-stdin
cd deploy/front
sudo docker image prune -a -f
sudo docker-compose -f docker-compose.front.yaml down
sudo docker-compose -f docker-compose.front.yaml pull
sudo docker-compose -f docker-compose.front.yaml up -d
1 change: 1 addition & 0 deletions .github/workflows/github-actions-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
echo "${{ secrets.ENV_FILE_PROD }}" > deploy/front/.env
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u ${{ secrets.GIT_USER }} --password-stdin
cd deploy/front
docker image prune -a -f
docker-compose -f docker-compose.front.yaml down
docker-compose -f docker-compose.front.yaml pull
docker-compose -f docker-compose.front.yaml up -d

0 comments on commit 368ccc7

Please sign in to comment.