Skip to content

Commit

Permalink
Trying build once push multi
Browse files Browse the repository at this point in the history
  • Loading branch information
santanusinha committed Jun 24, 2024
1 parent 28d4db1 commit b6fca0a
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b6fca0a

Please sign in to comment.