[Infra] 무중단 배포 자동화 환경 구축 (Docker) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration for SOPT makers Authentication Project | |
on: | |
pull_request: | |
branches: [ dev ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: ⚙️ Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 21 | |
distribution: 'corretto' | |
cache: gradle | |
- name: 🤝 Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
shell: bash | |
- name: 🔑 Create Application Property File | |
run: | | |
touch ./gradle.properties | |
touch ./src/main/resources/application.properties | |
echo "${{ secrets.PROPERTY_GRADLE }}" >> ./gradle.properties | |
echo "${{ secrets.PROPERTY_APPLICATION }}" >> ./src/main/resources/application.properties | |
- name: 🧱 Build with Gradle | |
run: ./gradlew clean build | |
shell: bash |