Skip to content

Commit

Permalink
[FIX] 중간 배포 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
c0smosaur committed May 29, 2024
1 parent faaef34 commit 24df409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
sed -i "s|# S3_ACCESS_KEY|access-key: '${{ secrets.S3_ACCESS_KEY }}'|" src/main/resources/application-test.yml
sed -i "s|# S3_SECRET_KEY|secret-key: '${{ secrets.S3_SECRET_KEY }}'|" src/main/resources/application-test.yml
sed -i "s|# S3_BUCKET_REGION|static: '${{ secrets.S3_BUCKET_REGION }}'|" src/main/resources/application-test.yml
sed -i "s|# JWT_SECRET|secret-key: '${{ secrets.JWT_SECRET }}'|" src/main/resources/application-test.yml
sed -i "s|# JWT_SECRET_KEY|secret-key: '${{ secrets.JWT_SECRET_KEY }}'|" src/main/resources/application-test.yml
shell: bash
env:
JAVA_HOME: /opt/hostedtoolcache/Java_Corretto_jdk/17.0.11-9.1/x64
Expand All @@ -59,13 +59,11 @@ jobs:
env:
APP: "docker-project"
COMPOSE: "/home/ubuntu/compose/docker-compose.yml"
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
with:
username: ubuntu
host: ${{ secrets.EC2_HOST }}
key: ${{ secrets.EC2_PRIVATE_KEY }}
envs: APP, COMPOSE, S3_ACCESS_KEY, S3_SECRET_KEY
envs: APP, COMPOSE
script_stop: true
script: |
sudo docker-compose -f $COMPOSE down
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ cloud:
auto: false

jwt:
# JWT_SECRET
# JWT_SECRET_KEY

0 comments on commit 24df409

Please sign in to comment.