Skip to content

Commit

Permalink
[BE]REFACTOR: CI/CD change to submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
enaenen committed Sep 26, 2023
1 parent aab08f8 commit fa8c00e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/back-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,24 @@ jobs:
backend-CI:
runs-on: ubuntu-latest
steps:
- name: Make ssh file
run: |
mkdir -p ~/.ssh
echo '${{ secrets.SSH_CONFIG }}' | base64 -d > ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa
- name: 체크아웃
uses: actions/checkout@v3

with:
submodule: true
- name: 서브모듈 업데이트
run: |
git submodule update --init config
- name: JDK 11 설정
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "corretto"

- name: Application YML 생성
run: |
mkdir -p backend/src/main/resources
echo "${{ secrets.APPLICATION_PROD_YML }}" | base64 --decode > backend/src/main/resources/application-prod.yml
echo "${{ secrets.APPLICATION_DEV_YML }}" | base64 --decode > backend/src/main/resources/application-dev.yml
echo "${{ secrets.APPLICATION_AUTH_YML }}" | base64 --decode > backend/src/main/resources/application-auth.yml
echo "${{ secrets.APPLICATION_MAIL_YML }}" | base64 --decode > backend/src/main/resources/application-mail.yml
- name: Cache Gradle packages
uses: actions/cache@v3
with:
Expand Down

0 comments on commit fa8c00e

Please sign in to comment.