Skip to content

Commit

Permalink
🔧 application.yml 숨김
Browse files Browse the repository at this point in the history
  • Loading branch information
RetepMil committed Oct 13, 2023
1 parent c18126a commit 7ea6160
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 55 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,23 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
# - name: Make 'application.yml'
# if: contains(github.ref, 'develop')
# run: |
# cd ./src/main/resources
# touch ./application.yml
# echo "${{ secrets.APPLICATION_YML_DEV }}" > ./application.yml
# cat ./application.yml
# shell: bash
- name: Make 'application.yml'
if: contains(github.ref, 'develop')
run: |
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.APPLICATION_YML_DEV }}" | base64 --decode > ./application.yml
cat ./application.yml
shell: bash

- name: Make 'application.yml'
if: contains(github.ref, 'main')
run: |
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.APPLICATION_YML }}" | base64 --decode > ./application.yml
cat ./application.yml
shell: bash

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
application.yml

### IntelliJ IDEA ###
.idea
Expand Down
47 changes: 0 additions & 47 deletions src/main/resources/application.yml

This file was deleted.

0 comments on commit 7ea6160

Please sign in to comment.