diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 4a537f7d..2ba4a065 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -85,6 +85,7 @@ jobs: repository: ${{ matrix.GIT_REPO_URL }} ref: ${{ matrix.GIT_REF }} # ref: github.ref + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -149,8 +150,8 @@ jobs: uses: redhat-actions/s2i-build@v2 with: path_context: ${{ matrix.PATH }} - # Builder image for a java project - builder_image: "${matrix.SOURCE_IMAGE_REGISTRY}${matrix.SOURCE_IMAGE_NAME}:${matrix.SOURCE_IMAGE_TAG}" + # Builder image for a java projectE_IMAG + builder_image: ${{ matrix.SOURCE_IMAGE_REGISTRY }}${{ matrix.SOURCE_NAME }}:${{ matrix.SOURCE_IMAGE_TAG }} image: ${{ env.GITHUB_IMAGE_REPO }}${{ matrix.service }} tags: ${{ steps.extract.outputs.tags }} @@ -164,6 +165,13 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Log in to the GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push Docker image id: docker_build if: contains(fromJSON('["aries-endorser-agent","aries-endorser-backup","aries-endorser-api","aries-endorser-proxy"]'), matrix.service)