bugfix: 修改版本获取方式
This commit is contained in:
parent
6f88486954
commit
b826425ed9
|
|
@ -13,8 +13,6 @@ jobs:
|
||||||
cache: false
|
cache: false
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- run: |
|
- run: |
|
||||||
sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list && \
|
|
||||||
sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list && \
|
|
||||||
apt update && apt install -y musl-tools
|
apt update && apt install -y musl-tools
|
||||||
rustup target add x86_64-unknown-linux-musl
|
rustup target add x86_64-unknown-linux-musl
|
||||||
cargo build -r --target x86_64-unknown-linux-musl
|
cargo build -r --target x86_64-unknown-linux-musl
|
||||||
|
|
@ -26,8 +24,7 @@ jobs:
|
||||||
password: Chenweijia113!
|
password: Chenweijia113!
|
||||||
- run: |
|
- run: |
|
||||||
ls
|
ls
|
||||||
var=${{ gitea.repository }}
|
repo="sched-task"
|
||||||
repo=${var##*/}
|
|
||||||
version=$(grep -oP '(?<=version = ")(.*)(?=")' "Cargo.toml")
|
version=$(grep -oP '(?<=version = ")(.*)(?=")' "Cargo.toml")
|
||||||
new_version="v${version}"
|
new_version="v${version}"
|
||||||
docker build -t hub.airpig.cn/library/$repo:$new_version .
|
docker build -t hub.airpig.cn/library/$repo:$new_version .
|
||||||
|
|
|
||||||
12
Cargo.toml
12
Cargo.toml
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "sched_tasks_rs"
|
name = "sched_tasks_rs"
|
||||||
version = "1.0.7"
|
version = "1.0.8"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
@ -8,12 +8,12 @@ chrono = "0.4.38"
|
||||||
clokwerk = "0.4.0"
|
clokwerk = "0.4.0"
|
||||||
log = "0.4.22"
|
log = "0.4.22"
|
||||||
env_logger = "0.9"
|
env_logger = "0.9"
|
||||||
openssl = { version = "0.10.66", features = ["vendored"] }
|
openssl = { version = "1.0.8", features = ["vendored"] }
|
||||||
regex = "1.10.5"
|
regex = "1.10.5"
|
||||||
reqwest = { version = "0.12.5", features = ["gzip"] }
|
reqwest = { version = "1.0.8", features = ["gzip"] }
|
||||||
scraper = "0.19.1"
|
scraper = "0.19.1"
|
||||||
sea-orm = { version = "0.12", features = [ "sqlx-mysql", "runtime-tokio-rustls", "macros" ]}
|
sea-orm = { version = "1.0.8", features = [ "sqlx-mysql", "runtime-tokio-rustls", "macros" ]}
|
||||||
tokio = { version = "1.39.2", features = ["full"] }
|
tokio = { version = "1.0.8", features = ["full"] }
|
||||||
serde = { version = "1.0.204", features = ["derive", "serde_derive"] }
|
serde = { version = "1.0.8", features = ["derive", "serde_derive"] }
|
||||||
toml = "0.8.19"
|
toml = "0.8.19"
|
||||||
lazy_static = "1.5.0"
|
lazy_static = "1.5.0"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue