Skip to content

Commit

Permalink
Merge pull request #35 from viral32111/workflow/ci
Browse files Browse the repository at this point in the history
Only run Docker image cleanup for non-PRs
  • Loading branch information
viral32111 committed Sep 24, 2023
2 parents f0097ea + 26f12ac commit 4882c19
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ name: CI
on:
push:
paths:
- 'Server/**/*'
- 'Client/**/*'
- 'Dockerfile'
- '.github/workflows/*.yml'
- '**'
branches:
- '**'
tags:
Expand Down Expand Up @@ -189,6 +186,7 @@ jobs:
pull: true

- name: Delete untagged Docker images
if: ${{ github.event_name != 'pull_request' && !startsWith( github.ref_name, 'dependabot/' ) }}
uses: snok/container-retention-policy@v2
with:
image-names: ${{ env.DOCKER_IMAGE_NAME }}
Expand Down

0 comments on commit 4882c19

Please sign in to comment.