Skip to content

Commit

Permalink
release: v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wanhuasong committed Mar 7, 2022
1 parent 10d56ab commit 3ee45b9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

```toml
[dependencies]
harbor_rs = "0.1.2"
harbor_rs = "0.1.3"
```

## clean-image-tags
Expand Down
2 changes: 1 addition & 1 deletion src/bin/config.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 3ee45b9

Please sign in to comment.