diff --git a/.github/workflows/gradle-cde.yml b/.github/workflows/gradle-cde.yml new file mode 100644 index 0000000..2cdb84a --- /dev/null +++ b/.github/workflows/gradle-cde.yml @@ -0,0 +1,40 @@ +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 \ No newline at end of file