-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separating image cleanup to its own workflow
- Loading branch information
1 parent
b2161a5
commit 5342b9e
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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/[email protected] | ||
with: | ||
package-name: sourcegraph/bridge-repo-converter | ||
package-type: container | ||
min-versions-to-keep: 5 | ||
delete-only-untagged-versions: 'true' | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,12 +56,3 @@ jobs: | |
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Delete old untagged packages | ||
uses: actions/[email protected] | ||
with: | ||
package-name: sourcegraph/bridge-repo-converter | ||
package-type: container | ||
min-versions-to-keep: 5 | ||
delete-only-untagged-versions: 'true' | ||
token: ${{ secrets.GITHUB_TOKEN }} |