ray
ray copied to clipboard
[ci] Docker tag clean up script
Changes
- Add a library file for functions to work on Docker tags:
- Get auth token from Docker Hub
- Get auth token from Docker.io
- Get tag's image creation time
- Delete tag
- Copy tag from Docker Hub to AWS ECR
- Query tags from Docker Hub (with custom filter as input)
- Query tags from Docker.io
- Backup release tags
- Delete old commit tags
- Add a binary file too run the workflow with 2 options: backup release tags & delete old commit tags.
Checks
- Unit tests
@aslonnie Here is the workflow for the docker tags clean up. It's quite a long PR so please let me know if you'd like a few parts from the PR description to be moved to another PR.
@aslonnie I have split the code so that this PR only contains helper functions. #43309 is code change for deleting old commit tags #43308 is for back up release tags I have another pending branch for the binary file to run the task with Bazel. Will put up a PR for that after these PRs are merged in.
ok, I am merging this. nothing that requires blocking. we can also fix small things afterwards.