Skip to content

Commit

Permalink
Fix GitHub Actions for Docker images (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcleblanc2 authored Mar 27, 2024
1 parent d6bd0aa commit 82d301d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
type=ref,event=tag,priority=2000
type=ref,event=pr,priority=1900
type=ref,event=branch,priority=1800
type=raw,value=insiders
type=raw,value=insiders-{{date 'YYYY-MM-DD-HH-mm-ss'}}
type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/docker-image-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Cleanup old Docker Images from GitHub Container Registry

on:
workflow_dispatch: # Creates button in web UI to run the workflow manually, shouldn't be needed
schedule:
- cron: '0 0 * * *' # Run at 00:00 UTC every day

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Delete old untagged packages
uses: actions/delete-package-versions@v5
with:
package-name: implementation-bridge-repo-converter
package-type: container
min-versions-to-keep: 10
ignore-versions: '^v\d+\.\d+\.\d+$'

0 comments on commit 82d301d

Please sign in to comment.