From acba540a58fa741ce6f65c0067a16d1e67458014 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 22 Mar 2024 13:06:32 -0500 Subject: [PATCH] build: only push cache on latest --- .github/workflows/build-image.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 96dddf2cf..7aff5f698 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -48,7 +48,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Build Aspects Docker Images run: | - tutor images build ${{ matrix.service.name }} --cache-to-registry -d '--tag=${{ matrix.service.repository }}:latest' + tutor images build ${{ matrix.service.name }} - name: Push docker image continue-on-error: true if: github.event.action == 'opened' || github.event.action == 'synchronize' @@ -58,5 +58,6 @@ jobs: continue-on-error: true if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'bot/v') run: | + tutor images build ${{ matrix.service.name }} --cache-to-registry -d '--tag=${{ matrix.service.repository }}:latest' tutor images push ${{ matrix.service.name }} docker image push ${{ matrix.service.repository }}:latest