Skip to content

Commit

Permalink
Add a workflow to remove untagged images regularly (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
supl authored Dec 27, 2023
1 parent 3bf1f41 commit 86106d4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/remove-untagged-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# When we push a new SNAPSHOT image, the old SNAPSHOT image remains as an untagged
# image in GitHub Packages. We remove those untagged images by using this workflow.

name: Remove untagged images

on:
schedule:
# UTC
- cron: '0 3 * * 1'
workflow_dispatch:

jobs:
remove-untagged-container-images:
runs-on: ubuntu-latest

steps:

- name: scalar-admin-for-kubernetes
uses: camargo/delete-untagged-action@v1
with:
github-token: ${{ secrets.CR_PAT }}
package-name: scalar-admin-for-kubernetes

0 comments on commit 86106d4

Please sign in to comment.