Skip to content

Commit

Permalink
Merge pull request #210 from linglong67/feature/modify-cicd-prod-yml
Browse files Browse the repository at this point in the history
[setting] cicd-prod.yml 내용 추가
  • Loading branch information
linglong67 committed Feb 28, 2024
2 parents c980f25 + 5bdd7dd commit 777fe5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
mkdir -p deploy
cd deploy
echo "${{ secrets.DB_INIT_SQL }}" > init.sql
echo "${{ secrets.DEV_REDIS_CONF }}" > redis.conf
echo "${{ secrets.DEV_REDIS_CONF }}" > redis/redis.conf
echo "${{ secrets.DOCKER_COMPOSE }}" > docker-compose.yml
docker-compose pull
docker-compose down
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/cicd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ jobs:
sudo chmod +x /usr/local/bin/docker-compose
# Docker Compose
mkdir -p deploy
cd deploy
echo "${{ secrets.PROD_REDIS_CONF }}" > redis.conf
echo "${{ secrets.DOCKER_COMPOSE_AWS }}" > docker-compose.yml
sudo mkdir -p deploy
sudo cd deploy
sudo echo "${{ secrets.PROD_REDIS_CONF }}" > redis/redis.conf
sudo echo "${{ secrets.DOCKER_COMPOSE_AWS }}" > docker-compose.yml
aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin ${{ steps.login-ecr.outputs.registry }}
docker-compose pull
docker-compose down
docker-compose up -d

0 comments on commit 777fe5b

Please sign in to comment.