From 26442ea30dd70b84028c22f5c5bf1ba74961f8ac Mon Sep 17 00:00:00 2001 From: Seokyeong Date: Sat, 20 Jan 2024 16:45:45 +0900 Subject: [PATCH] fix: set up environment --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9172dbb..56ee363 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,7 +24,8 @@ jobs: # 환경 변수 설정 - name: Set up Environment run: | - touch application.yml + cd ./src/main/resources + touch ./application.yml echo "${{ secrets.APPLICATION_YML }}" > ./application.yml # 빌드 권한 부여 @@ -59,7 +60,7 @@ jobs: docker push $ECR_REGISTRY/$ECR_REPOSITORY mkdir scripts touch scripts/deploy.sh - echo "aws ecr get-login --region ap-northeast-2 --no-include-email | docker login --username AWS --password-stdin $ECR_REGISTRY" >> scripts/deploy.sh + echo "aws ecr get-login--password --region ap-northeast-2 --no-include-email | docker login --username AWS --password-stdin $ECR_REGISTRY" >> scripts/deploy.sh echo "docker rm -f codedeploy" >> scripts/deploy.sh echo "docker rmi $ECR_REGISTRY/$ECR_REPOSITORY" >> scripts/deploy.sh echo "docker pull $ECR_REGISTRY/$ECR_REPOSITORY" >> scripts/deploy.sh