summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-10-04 12:27:29 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-10-04 12:27:29 +0200
commit60fd781aced0f63ccdea8eb0a0836ffef75e70a3 (patch)
treec13c1bfbcfe0e4a5baf919e86b0dcedc8a51c46e
parent9ceec25b3d5f00182e0b7170365f202abb1c83ff (diff)
Add version label on Dockerfile
-rw-r--r--Dockerfile2
-rwxr-xr-xscripts/release1
2 files changed, 3 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 1db6021..8b3475e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,6 +9,8 @@ RUN cargo build --release
# Stage 2
FROM debian:bookworm-slim
+LABEL version="0.8.2"
+
RUN mkdir -p /app
RUN apt-get update && apt-get install -y libssl-dev
diff --git a/scripts/release b/scripts/release
index 9c513f4..86e3130 100755
--- a/scripts/release
+++ b/scripts/release
@@ -4,6 +4,7 @@ if [ $# -eq 0 ]; then
fi
sed -i "3s/.*/version = \"$1\"/" Cargo.toml
+sed -i "12s/.*/LABEL version=\"$1\"/" Dockerfile
cargo c
git add Cargo.*
git commit -m "release: version $1"