fix: 更新Cargo版本信息及action文件
This commit is contained in:
parent
bb1b4d89f1
commit
a093d0fa88
|
|
@ -17,4 +17,25 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.com/actions/checkout@v4
|
- uses: https://gitea.com/actions/checkout@v4
|
||||||
- uses: https://git.airpig.cn/actions/setup-rust-toolchain@v1
|
- uses: https://git.airpig.cn/actions/setup-rust-toolchain@v1
|
||||||
- run: cargo build
|
with:
|
||||||
|
target: x86_64-unknown-linux-musl
|
||||||
|
- run: cargo build -r --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
build-docker-image:
|
||||||
|
name: Build Docker image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Login to hub.airpig.cn
|
||||||
|
uses: https://gitea.com/docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: hub.airpig.cn
|
||||||
|
username: admin
|
||||||
|
password: Chenweijia113!
|
||||||
|
- run: |
|
||||||
|
repo="sched_task"
|
||||||
|
version=$(grep -oP '(?<=version = ")(.*)(?=")' "Cargo.toml")
|
||||||
|
new_version="v${version}"
|
||||||
|
docker build -t hub.airpig.cn/library/$repo:$new_version .
|
||||||
|
docker push hub.airpig.cn/library/$repo:$new_version
|
||||||
|
docker rmi hub.airpig.cn/library/$repo:$new_version
|
||||||
|
- run: echo "This job's status is ${{ job.status }}.
|
||||||
|
|
@ -2039,7 +2039,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sched_tasks_rs"
|
name = "sched_tasks_rs"
|
||||||
version = "0.1.0"
|
version = "1.0.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clokwerk",
|
"clokwerk",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "sched_tasks_rs"
|
name = "sched_tasks_rs"
|
||||||
version = "0.1.0"
|
version = "1.0.7"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue