Skip to content

Merge: Main <- juwon/#10-CI-CD (Fix-2) #3

Merge: Main <- juwon/#10-CI-CD (Fix-2)

Merge: Main <- juwon/#10-CI-CD (Fix-2) #3

Workflow file for this run

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.yml
- name: Grant execute permission for gradlew
run: |
cd manager
chmod +x gradlew
- name: DockerHub push with Gradle
run: |
cd manager
./gradlew jib