Skip to content

Commit

Permalink
Github CI: tag Docker images, automatically cleanup non-master ones
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGr committed Jul 29, 2022
1 parent 6e82590 commit 44cadac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/run-make-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ jobs:
- name: Prepare container with all dependencies
run: git archive HEAD | docker build - --target dev-build-context
- name: Run builds, checks and tests
run: git archive HEAD | docker build -
run: git archive HEAD | docker build - --force-rm -t catalalang/catala:${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}
- name: Cleanup Docker image
if: ${{ github.ref != 'refs/heads/master' }}
run: docker image rm catalalang/catala:${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}

0 comments on commit 44cadac

Please sign in to comment.