Skip to content

Commit

Permalink
ci: πŸ§‘β€πŸ’» added action to remove untagged images
Browse files Browse the repository at this point in the history
  • Loading branch information
alchatti committed Jan 11, 2024
1 parent e4a0839 commit e749b57
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/package-clean-up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Delete all containers from repository without tags

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
workflow_dispatch:
# schedule:
# - cron: "0 3 3 * *"

jobs:
CleanUp:
runs-on: ubuntu-latest
steps:
- name: Delete all containers from repository without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
token: ${{ secrets.PKG_GITHUB_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
untagged_only: true
owner_type: user

0 comments on commit e749b57

Please sign in to comment.