ddd
Some checks failed
Deploy control plane / Build, push, and deploy production (push) Failing after 10s
Release VPS agent / Build and publish Linux agent (push) Failing after 1m8s

This commit is contained in:
2026-09-24 23:39:54 +03:00
parent d912da6310
commit d8f98497b5
6 changed files with 53 additions and 32 deletions

2
agent/Cargo.lock generated
View File

@@ -1095,7 +1095,7 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
[[package]]
name = "vps-agent"
version = "0.1.0"
version = "0.1.4"
dependencies = [
"anyhow",
"axum",

View File

@@ -1,6 +1,6 @@
[package]
name = "vps-agent"
version = "0.1.4"
version = "0.1.5"
edition = "2021"
rust-version = "1.80"
license = "Apache-2.0"

16
agent/Dockerfile.release Normal file
View File

@@ -0,0 +1,16 @@
# syntax=docker/dockerfile:1.7
FROM --platform=$TARGETPLATFORM rust:1.85.1-alpine3.21 AS build
RUN apk add --no-cache musl-dev
WORKDIR /src
COPY agent/Cargo.toml agent/Cargo.lock ./
COPY agent/src ./src
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/src/target \
cargo build --locked --release && \
install -D -m 0755 /src/target/release/vps-agent /out/vps-agent
FROM scratch AS artifact
COPY --from=build /out/vps-agent /vps-agent