Skip to content

Commit

Permalink
try not using the workflow, checkout might not be working as expected (
Browse files Browse the repository at this point in the history
  • Loading branch information
hrothwell authored Jul 5, 2024
1 parent 05ff234 commit 12a478d
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12a478d

Please sign in to comment.