From b49a60d11cdfaa31c695c3bf14146f880c511912 Mon Sep 17 00:00:00 2001 From: Martin Bhuong Date: Wed, 10 Jul 2024 09:59:20 +0200 Subject: [PATCH] implement app versioning --- build-images.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-images.sh b/build-images.sh index c7c8b81..3baa903 100644 --- a/build-images.sh +++ b/build-images.sh @@ -14,6 +14,7 @@ images=() repobase="${REPOBASE:-ghcr.io/geniusdynamics}" # Configure the image name reponame="chiefonboarding" +APP_VERSION="v2.2.2" # Create a new empty container image container=$(buildah from scratch) @@ -45,7 +46,7 @@ buildah config --entrypoint=/ \ --label="org.nethserver.authorizations=traefik@node:routeadm" \ --label="org.nethserver.tcp-ports-demand=1" \ --label="org.nethserver.rootfull=0" \ - --label="org.nethserver.images=docker.io/postgres:15.5-alpine3.19 docker.io/chiefonboarding/chiefonboarding:latest" \ + --label="org.nethserver.images=docker.io/postgres:15.5-alpine3.19 docker.io/chiefonboarding/chiefonboarding:${APP_VERSION}" \ "${container}" # Commit the image buildah commit "${container}" "${repobase}/${reponame}"