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