diff options
author | Santo Cariotti <santo@dcariotti.me> | 2024-10-04 12:27:29 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2024-10-04 12:27:29 +0200 |
commit | 60fd781aced0f63ccdea8eb0a0836ffef75e70a3 (patch) | |
tree | c13c1bfbcfe0e4a5baf919e86b0dcedc8a51c46e | |
parent | 9ceec25b3d5f00182e0b7170365f202abb1c83ff (diff) |
Add version label on Dockerfile
-rw-r--r-- | Dockerfile | 2 | ||||
-rwxr-xr-x | scripts/release | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -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" |