Skip to content

Commit

Permalink
build: skip login to docker hub and push step on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Mar 22, 2024
1 parent be9401b commit a8659d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
tutor images build ${{ matrix.service.name }}
tutor images push ${{ matrix.service.name }}
- name: Build Aspects Docker Images Latest
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'
Expand Down

0 comments on commit a8659d3

Please sign in to comment.