diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 84822ae..3f7439d 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -5,11 +5,29 @@ on: types: [published] jobs: - checkout_and_gradle_build: - uses: ./.github/workflows/gradle.yml + # checkout_and_gradle_build: + # uses: ./.github/workflows/gradle.yml + build: + name: gradle build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: "17" + distribution: "temurin" + - name: make gradle executable + run: chmod +x ./gradlew + - name: Build with Gradle + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 + with: + arguments: build push_to_registry: name: Push Docker image to Docker Hub - needs: checkout_and_gradle_build + # needs: checkout_and_gradle_build + needs: build runs-on: ubuntu-latest permissions: packages: write