Skip to content

Commit

Permalink
Merge pull request #677 from openedx/cag/ci-build
Browse files Browse the repository at this point in the history
build: only push cache on latest
  • Loading branch information
Cristhian Garcia authored Mar 22, 2024
2 parents 7dc0e51 + acba540 commit b6822d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

0 comments on commit b6822d3

Please sign in to comment.