diff --git a/.github/workflows/cicd-dev.yml b/.github/workflows/cicd-dev.yml index 465322c5..744bf0cf 100644 --- a/.github/workflows/cicd-dev.yml +++ b/.github/workflows/cicd-dev.yml @@ -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 diff --git a/.github/workflows/cicd-prod.yml b/.github/workflows/cicd-prod.yml index c56ed832..de8eb59a 100644 --- a/.github/workflows/cicd-prod.yml +++ b/.github/workflows/cicd-prod.yml @@ -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 \ No newline at end of file