Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@ jobs:
touch ./application-test.yml
echo '${{ secrets.TEST_YML }}' > ./application-test.yml
shell: bash

# application-test.yml sanity check (do not print secrets/values)
- name: Debug application-test.yml (safe)
run: |
if [ ! -s src/main/resources/application-test.yml ]; then echo "application-test.yml: empty"; else echo "application-test.yml: present"; fi
if grep -Eq "^[[:space:]]*datasource[[:space:]]*:" src/main/resources/application-test.yml; then echo "datasource: present"; else echo "datasource: missing"; fi
if grep -Eq "^[[:space:]]*spring[[:space:]]*:" src/main/resources/application-test.yml; then echo "spring: present"; else echo "spring: missing"; fi
if grep -Eq "^[[:space:]]*config[[:space:]]*:" src/main/resources/application-test.yml; then echo "config: present"; else echo "config: missing"; fi
if grep -Eq "^[[:space:]]*activate[[:space:]]*:" src/main/resources/application-test.yml; then echo "activate: present"; else echo "activate: missing"; fi
if grep -Eq "^[[:space:]]*on-profile[[:space:]]*:" src/main/resources/application-test.yml; then echo "on-profile: present"; else echo "on-profile: missing"; fi
if grep -Eq "^[[:space:]]*url[[:space:]]*:" src/main/resources/application-test.yml; then echo "url: present"; else echo "url: missing"; fi
if grep -Eq "^[[:space:]]*username[[:space:]]*:" src/main/resources/application-test.yml; then echo "username: present"; else echo "username: missing"; fi
if grep -Eq "^[[:space:]]*password[[:space:]]*:" src/main/resources/application-test.yml; then echo "password: present"; else echo "password: missing"; fi
shell: bash

# gradle wrapper 파일에 실행 권한을 부여
# gradle wrapper = 개발자가 특정 버전의 Gradle을 미리 설치하지 않고도 Gradle 빌드를 실행할 수 있게 해주는 편리한 도구
Expand Down Expand Up @@ -126,4 +140,4 @@ jobs:
sudo docker rm "${{ secrets.SERVICE_NAME }}" || true
sudo docker pull "${{ secrets.DOCKERHUB_USERNAME }}"/"${{ secrets.DOCKERHUB_DEV_REPO_NAME }}":"${{ github.run_number }}"
sudo docker run -d --name "${{ secrets.SERVICE_NAME }}" -p "${{ secrets.DEVELOP_SERVICE_PORT }}":"${{ secrets.DEVELOP_SERVICE_PORT }}" --network "${{ secrets.DEVELOP_DOCKER_NETWORK }}" "${{ secrets.DOCKERHUB_USERNAME }}"/"${{ secrets.DOCKERHUB_DEV_REPO_NAME }}":"${{ github.run_number }}"
sudo docker image prune -a -f
sudo docker image prune -a -f
Loading