fix:
This commit is contained in:
parent
5ffb057656
commit
c4fc234104
|
|
@ -9,9 +9,9 @@ jobs:
|
|||
steps:
|
||||
- uses: https://gitea.com/actions/checkout@v4
|
||||
- uses: https://git.airpig.cn/actions/setup-rust-toolchain@v1
|
||||
with:
|
||||
cache: false
|
||||
- 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
|
||||
rustup target add x86_64-unknown-linux-musl
|
||||
cargo build -r --target x86_64-unknown-linux-musl
|
||||
|
|
@ -22,7 +22,9 @@ jobs:
|
|||
username: admin
|
||||
password: Chenweijia113!
|
||||
- run: |
|
||||
repo="sched_task"
|
||||
ls
|
||||
var=${{ gitea.repository }}
|
||||
repo=${var##*/}
|
||||
version=$(grep -oP '(?<=version = ")(.*)(?=")' "Cargo.toml")
|
||||
new_version="v${version}"
|
||||
docker build -t hub.airpig.cn/library/$repo:$new_version .
|
||||
|
|
|
|||
Loading…
Reference in New Issue