diff --git a/Cargo.toml b/Cargo.toml index 754c2f2..94bd0e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "harbor_rs" -version = "0.1.2" +version = "0.1.3" edition = "2021" description = "Harbor API in Rust" license = "MIT" diff --git a/Makefile b/Makefile index 58fee93..3fdf9c3 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ -version = 0.1.2 +version = 0.1.3 +.PHONY: upgrade upgrade: - sed -i "" 's/^version = "[0-9]*.[0-9]*.[0-9]*"/version = "${version}"/' Cargo.toml - sed -i "" 's/harbor_rs = "[0-9]*.[0-9]*.[0-9]*"/harbor_rs = "${version}"/g' README.md + sed -i "" 's/^version = "[0-9]*.[0-9]*.[0-9]*"/version = "$(version)"/' Cargo.toml + sed -i "" 's/harbor_rs = "[0-9]*.[0-9]*.[0-9]*"/harbor_rs = "$(version)"/g' README.md +.PHONY: tests tests: # user tests ordered cargo test --color=always --package harbor_rs --lib harbor::user::tests::get_current_user @@ -17,5 +19,6 @@ tests: # project tests ordered cargo test --color=always --package harbor_rs --lib harbor::project::tests::list_projects +.PHONY: build-clean-image-tags build-clean-image-tags: cargo build --release --all-features --bin clean-image-tags diff --git a/README.md b/README.md index 3b0291c..039f967 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ```toml [dependencies] -harbor_rs = "0.1.2" +harbor_rs = "0.1.3" ``` ## clean-image-tags diff --git a/src/bin/config.yml b/src/bin/config.yml index c2a2ccf..7db6cfd 100644 --- a/src/bin/config.yml +++ b/src/bin/config.yml @@ -1,7 +1,7 @@ harbor_base_api: "https://example.com/api" harbor_username: "admin" harbor_password: "admin" -clean_interval: 20 +clean_interval: 20 # 清理 20 天前构建的镜像 repos: - "test/image1" - "test/image2" \ No newline at end of file