Skip to content

Commit

Permalink
Merge pull request #63 from APPS-sookmyung/dev
Browse files Browse the repository at this point in the history
[Fix] CI/CD 구축 오류 해결
  • Loading branch information
ajung7038 authored Aug 12, 2024
2 parents fcf27a6 + dd0025e commit 760de6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
Binary file added .DS_Store
Binary file not shown.
25 changes: 11 additions & 14 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
branches: [ "main" ]

permissions:
contents: read

jobs:
CI-CD:
runs-on: ubuntu-latest
Expand All @@ -33,17 +30,6 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
# 환경별 yml 파일 생성 - application.yml
- name: make application.yml
if: |
contains(github.ref, 'main')
run: |
mkdir ./src/main/resources
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.YML }}" > ./application.yml
shell: bash

- name: Setting .env file - KAKAO
run: |
echo "OAUTH_KAKAO_CLIENT_ID=${{ secrets.OAUTH_KAKAO_CLIENT_ID }}" >> .env
Expand Down Expand Up @@ -78,6 +64,17 @@ jobs:
echo "BUCKET_SECRET_KEY=${{ secrets.BUCKET_SECRET_KEY }}" >> .env
cat .env
# 환경별 yml 파일 생성 - application.yml
- name: make application.yml
if: |
contains(github.ref, 'main')
run: |
mkdir ./src/main/resources
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.YML }}" > ./application.yml
shell: bash

# gradle build
- name: Build with Gradle
run: ./gradlew clean build -x test
Expand Down

0 comments on commit 760de6b

Please sign in to comment.