Skip to content

Commit

Permalink
Merge pull request #38 from Sirius506775/main
Browse files Browse the repository at this point in the history
[BE / infra] 민감정보 파일을 복호화하여 사용한다
  • Loading branch information
Sirius506775 authored Nov 17, 2023
2 parents 6902293 + 6edb8df commit 3ac531e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 172 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

env:
RESOURCE_PATH: /home/runner/work/Rehab-Backend/Rehab-Backend/src/main/resources
PROJECT_NAME : rehab-server

permissions:
contents: read
checks: write
Expand All @@ -29,6 +33,16 @@ jobs:
- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Decrypt application-secret yml
run: gpg --quiet --batch --yes --always-trust --decrypt --passphrase=${{ secrets.APPLICATION_SECRET_YML }} --output $RESOURCE_PATH/application.tar $RESOURCE_PATH/application.tar.gpg
shell: bash

- name: Unzip application.tar file to application-secret.yml
run: |
cd $RESOURCE_PATH
tar xvf application.tar
shell: bash

- name: Build with Gradle
run: ./gradlew build -x test

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

78 changes: 0 additions & 78 deletions src/main/java/com/hallym/rehab/global/config/EmailConfig.java

This file was deleted.

Binary file added src/main/resources/application.tar.gpg
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
spring:
profiles:
active: secret, email
active: secret

0 comments on commit 3ac531e

Please sign in to comment.