From 2726e4abaa911d260f6bbdf010cb79ae1e5cb16f Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 22 Mar 2024 11:18:06 -0500 Subject: [PATCH] build: skip login to docker hub and push step on error --- .github/workflows/build-image.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 1fe14c60a..96dddf2cf 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -24,6 +24,7 @@ jobs: run: echo ${{github.head_ref}} - name: Log in to Docker Hub + continue-on-error: true uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 with: username: ${{ secrets.EDUNEXT_DOCKER_USERNAME }} @@ -46,13 +47,16 @@ jobs: - name: Setup Docker Buildx 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' + - name: Push docker image + continue-on-error: true if: github.event.action == 'opened' || github.event.action == 'synchronize' run: | - tutor images build ${{ matrix.service.name }} tutor images push ${{ matrix.service.name }} - - name: Build Aspects Docker Images Latest + - name: Push latest docker image + 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