From b6fca0a9c36416b1a76851b884924552b2218a17 Mon Sep 17 00:00:00 2001 From: Santanu Sinha Date: Mon, 24 Jun 2024 09:58:23 +0530 Subject: [PATCH] Trying build once push multi --- .github/workflows/release.yml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af6d6e4b..39f45f85 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,12 +11,29 @@ on: - '*' # Push events to every tag not containing / jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + cache: maven + distribution: 'temurin' + + - name: Build with Maven + run: mvn -B package -DskipTests - build-and-push: + deploy: + needs: build runs-on: ubuntu-latest strategy: fail-fast: false + max-parallel: 1 matrix: include: - image: ghcr.io/PhonePe/drove-executor @@ -28,18 +45,6 @@ jobs: packages: write steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - cache: maven - distribution: 'temurin' - - - name: Build with Maven - run: mvn -B package -DskipTests # - name: Deploy with Maven # run: mvn -B deploy -DskipTests