ray icon indicating copy to clipboard operation
ray copied to clipboard

[ci] Docker tag clean up script

Open khluu opened this issue 1 year ago • 1 comments

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

khluu avatar Feb 17 '24 07:02 khluu

@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.

khluu avatar Feb 17 '24 07:02 khluu

@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.

khluu avatar Feb 21 '24 09:02 khluu

ok, I am merging this. nothing that requires blocking. we can also fix small things afterwards.

aslonnie avatar Feb 23 '24 19:02 aslonnie