From 34ccc3508d8898b8a09e8085d05d56c8eaebfcb6 Mon Sep 17 00:00:00 2001 From: Santanu Sinha Date: Mon, 24 Jun 2024 10:39:57 +0530 Subject: [PATCH] Simplified matrix variables --- .github/workflows/release.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 464b1580..d01c1653 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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 @@ -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