Skip to content

Commit

Permalink
MATE-90 : [CHORE] deploy.yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jooinjoo committed Dec 6, 2024
1 parent ad2ef80 commit 93db53b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Deploy To EC2
on:
push

on: push

jobs:
deploy:
Expand All @@ -15,9 +15,15 @@ jobs:
distribution: temurin
java-version: 17

- name: Check if secret exists
if: "${{ secrets.APPLICATION_PROPERTIES != '' }}"
run: echo "Secret is set"
- name: Verify secret
run: |
if [ -z "${{ secrets.APPLICATION_PROPERTIES }}" ]
then
echo "❌ Secret is empty"
exit 1
else
echo "✅ Secret exists"
fi
- name: application-dev.yml 파일 만들기
run: echo "${{ secrets.APPLICATION_PROPERTIES }}" > ./src/main/resources/application.yml
Expand Down

0 comments on commit 93db53b

Please sign in to comment.