Skip to content

Commit

Permalink
Merge pull request #24 from YAPP-Github/feat/ISSUE-15
Browse files Browse the repository at this point in the history
fix: CD pipeline
  • Loading branch information
Seokyeong237 authored Jan 21, 2024
2 parents 1e90bcb + 6023caf commit db1500f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
mkdir ./resources
cd ./resources
touch ./application.yml
echo "${{ secrets.APPLICATION_YML }}" >> ./application.yml
cat ./application.yml
echo "${{ secrets.APPLICATION_YML }}" | base64 --decode >> application.yml
cat application.yml
# 빌드 권한 부여
- name: Grant execute permission for gradlew
Expand Down Expand Up @@ -64,15 +64,15 @@ jobs:
mkdir scripts
touch 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 "aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin $ECR_REGISTRY" >> scripts/deploy.sh
echo "docker pull $ECR_REGISTRY/$ECR_REPOSITORY" >> scripts/deploy.sh
echo "docker rm -f codedeploy" >> scripts/deploy.sh
echo "docker rmi $ECR_REGISTRY/$ECR_REPOSITORY" >> scripts/deploy.sh
echo "docker run -d --name codedeploy -p 8080:8080 --restart always $ECR_REGISTRY/$ECR_REPOSITORY" >> scripts/deploy.sh
# zip 파일로 압축
- name: zip file
run: zip -r fullcar.zip ./scripts ./appspec.yml ./build/libs/*.jar
run: zip -r fullcar.zip ./scripts ./src/main/resources/application.yml ./appspec.yml ./build/libs/*.jar

# S3에 업로드
- name: Upload to S3
Expand Down

0 comments on commit db1500f

Please sign in to comment.