Merge: Main <- juwon/#16-database #5
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: Gradle CI | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Create properties | |
run: | | |
cd manager | |
echo "${{ secrets.GRADLE_PROPERTIES_CONTENT }}" > gradle.properties | |
mkdir -p src/main/resources | |
echo "${{ secrets.APPLICATION_YML_CONTENT }}" > src/main/resources/application-dev.yml | |
- name: Grant execute permission for gradlew | |
run: | | |
cd manager | |
chmod +x gradlew | |
- name: DockerHub push with Gradle | |
run: | | |
cd manager | |
./gradlew jib |