Last active
March 2, 2023 08:15
-
-
Save nekufa/203f2d6928a08aceac83a75297cff5f8 to your computer and use it in GitHub Desktop.
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
nekufa@fasiga ~/software/wfm % yc container repository lifecycle-policy create --repository-name crpf255p88b3bourvm4f --rules ./rules.json | |
id: crp6l3eg11h899i55cjt | |
repository_id: crp4dn6lp7isk8p11t3l | |
status: DISABLED | |
created_at: "2023-03-02T08:13:12.555327449Z" | |
rules: | |
- description: keep weekly tags not less 8 images | |
expire_period: 604800s | |
tag_regexp: .* | |
retained_top: "8" | |
- description: untagged | |
expire_period: 86400s | |
untagged: true | |
nekufa@fasiga ~/software/wfm % yc container repository lifecycle-policy dry-run crp6l3eg11h899i55cjt | |
done (1s) | |
dry_run_lifecycle_policy_result_id: crpovr3cbfa481ojtful | |
lifecycle_policy_id: crp6l3eg11h899i55cjt | |
run_at: "2023-03-02T08:13:27.241086973Z" | |
nekufa@fasiga ~/software/wfm % yc container repository lifecycle-policy list-dry-run-results crp6l3eg11h899i55cjt | |
+----------------------+----------------------+-----------------------+---------------------+ | |
| RESULT ID | LIFECYCLE POLICY ID | AFFECTED IMAGES COUNT | RUN AT | | |
+----------------------+----------------------+-----------------------+---------------------+ | |
| crpovr3cbfa481ojtful | crp6l3eg11h899i55cjt | 0 | 2023-03-02 08:13:27 | | |
+----------------------+----------------------+-----------------------+---------------------+ | |
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
[ | |
{ | |
"description": "keep weekly tags not less 8 images", | |
"tag_regexp": ".*", | |
"expire_period": "7d", | |
"retained_top": 8 | |
}, | |
{ | |
"description": "untagged", | |
"untagged": true, | |
"expire_period": "24h" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment