forked from opendatahub-io/notebooks
-
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.
Merge pull request opendatahub-io#335 from harshad16/rsync-main
sync main from opendatahub-io:main
- Loading branch information
Showing
111 changed files
with
10,959 additions
and
42,220 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
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
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
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
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,35 @@ | ||
--- | ||
name: "Purge old ghcr.io test images periodically" | ||
|
||
"on": | ||
workflow_dispatch: | ||
inputs: | ||
dry_run: | ||
type: boolean | ||
default: true | ||
description: "Do a dry run?" | ||
schedule: | ||
- cron: "0 5 * * *" # at 05:00 every day | ||
|
||
permissions: | ||
packages: write | ||
|
||
jobs: | ||
clean: | ||
runs-on: ubuntu-latest | ||
name: Delete old test images | ||
steps: | ||
# https://github.com/snok/container-retention-policy?tab=readme-ov-file#parameters | ||
- uses: snok/container-retention-policy@4f22ef80902ad409ed55a99dc5133cc1250a0d03 # v3.0.0 | ||
with: | ||
# account must be the gh org name when running for an org, and 'user' when running for a user | ||
account: ${{ (github.repository_owner == github.actor) && 'user' || github.repository_owner }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
image-names: | | ||
${{ github.event.repository.name }}/workbench-images | ||
${{ github.event.repository.name }}/workbench-images/build-cache | ||
image-tags: "*" | ||
cut-off: "3w" | ||
dry-run: ${{ inputs.dry_run || false }} | ||
env: | ||
RUST_BACKTRACE: 1 |
Oops, something went wrong.