Skip to content

Commit

Permalink
Simplified matrix variables
Browse files Browse the repository at this point in the history
  • Loading branch information
santanusinha committed Jun 24, 2024
1 parent ed5427a commit 34ccc35
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ jobs:
cache: maven
distribution: 'temurin'

- name: Build with Maven
run: mvn -B package -DskipTests
# - name: Deploy with Maven
# run: mvn -B deploy -DskipTests
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy with Maven
run: mvn -B deploy -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Save Executor jar for next job
uses: actions/upload-artifact@v4
with:
Expand All @@ -54,10 +53,8 @@ jobs:
max-parallel: 1
matrix:
include:
- image: ghcr.io/PhonePe/drove-executor
context: drove-executor
- image: ghcr.io/PhonePe/drove-controller
context: drove-controller
- context: drove-executor
- context: drove-controller
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -86,7 +83,7 @@ jobs:
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ matrix.image }}
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.context }}

- name: Build and push Docker image for executor
uses: docker/build-push-action@v6
Expand Down

0 comments on commit 34ccc35

Please sign in to comment.