Skip to content

Commit

Permalink
[deploy] #117 eof를 통해 secret 값 넣는 방식 시도 (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
khyojun authored Jan 19, 2025
2 parents 4373419 + e72c2c4 commit bd196a4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/gongbaek-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ jobs:
- name: Push yml file
run: |
mkdir -p ./src/main/resources
ls ./src/main/resources
cd ./src/main/resources/
echo ${{ secrets.PROD_CONFIG }} > application-prod.yml
echo "hello is yml file push success?"
cat ./src/main/resources/application-prod.yml
cat <<EOF > ./src/main/resources/application-prod.yml
${{ secrets.PROD_CONFIG }}
EOF
echo "YML file successfully created"
- name: Build with Gradle
run: ./gradlew -x test clean build
Expand Down

0 comments on commit bd196a4

Please sign in to comment.