Skip to content

Commit

Permalink
Merge pull request #48 from c0smosaur/dev
Browse files Browse the repository at this point in the history
[FIX] 중간 배포 수정
  • Loading branch information
c0smosaur authored May 29, 2024
2 parents faaef34 + 0eedafe commit f997735
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:

- name: Inject Secret values into application-test.yml
run: |
sed -i "s|# MYSQL_URL|url: '${{ secrets.DB_URL }}'|" src/main/resources/application-test.yml
sed -i "s|# MYSQL_USERNAME|username: '${{ secrets.DB_USERNAME }}'|" src/main/resources/application-test.yml
sed -i "s|# MYSQL_PASSWORD|password: '${{ secrets.DB_PASSWORD }}'|" src/main/resources/application-test.yml
sed -i "s|# MYSQL_URL|url: '${{ secrets.MYSQL_URL }}'|" src/main/resources/application-test.yml
sed -i "s|# MYSQL_USERNAME|username: '${{ secrets.MYSQL_USERNAME }}'|" src/main/resources/application-test.yml
sed -i "s|# MYSQL_PASSWORD|password: '${{ secrets.MYSQL_PASSWORD }}'|" src/main/resources/application-test.yml
sed -i "s|# SMTP_EMAIL|username: '${{ secrets.SMTP_EMAIL }}'|" src/main/resources/application-test.yml
sed -i "s|# SMTP_PASSWORD|password: '${{ secrets.SMTP_PASSWORD }}'|" src/main/resources/application-test.yml
sed -i "s|# SMTP_HOST|host: '${{ secrets.SMTP_HOST }}'|" src/main/resources/application-test.yml
Expand All @@ -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 f997735

Please sign in to comment.