forked from opentripplanner/OpenTripPlanner
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/dev-2.x' into upstream-merge-2…
…023-12-13
- Loading branch information
Showing
215 changed files
with
5,058 additions
and
2,589 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,22 @@ | ||
name: 'Prune container images' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 12 * * 1' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
container-image: | ||
if: github.repository_owner == 'opentripplanner' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Delete unused container images | ||
env: | ||
CONTAINER_REPO: opentripplanner/opentripplanner | ||
CONTAINER_REGISTRY_USER: otpbot | ||
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
run: | | ||
# remove all snapshot container images that have not been pulled for over a year | ||
# --keep-semver makes sure that any image with a x.y.z version scheme is unaffected by this | ||
pip install prune-container-repo==0.0.4 | ||
prune-container-repo -u ${CONTAINER_REGISTRY_USER} -r ${CONTAINER_REPO} --days=365 --keep-semver --activate |
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
Oops, something went wrong.