From ee3ada5a30c69049031cd928238a96b1c362ff86 Mon Sep 17 00:00:00 2001 From: Rajpal Chauhan Date: Fri, 19 Jan 2024 14:46:39 -0800 Subject: [PATCH] test Signed-off-by: Rajpal Chauhan --- .github/workflows/main.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index ea8f37f5..15b8932f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -62,6 +62,14 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + + - name: Pull base image + id: pull_build_image + run: | + docker pull $builder_image + env: + builder_image: ${{ matrix.BUILDER_IMAGE }} + - name: Log in to the GHCR uses: docker/login-action@v2 with: @@ -84,7 +92,7 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} type=sha,value=latest - if: contains(fromJSON('["aries-endorser-agent","aries-endorser-backup","aries-endorser-api"]'), '$service') + if: contains(fromJSON('["aries-endorser-agent","aries-endorser-backup","aries-endorser-api"]'), ${{ env.service }}) env: service: ${{ matrix.service }} # - name: Build and push Docker image @@ -100,12 +108,7 @@ jobs: # cache-to: type=gha,mode=max # if: contains(fromJSON(['aries-endorser-agent','aries-endorser-backup','aries-endorser-api']), ${{ matrix.service }} ) - - name: Pull base image - id: pull_build_image - run: | - docker pull $builder_image - env: - builder_image: ${{ matrix.BUILDER_IMAGE }} + - name: Setup and Build id: build_image uses: redhat-actions/s2i-build@v2