updated versioning and image tag to be more intuitive

This commit is contained in:
Hamza Ahmed
2023-03-29 11:34:58 +01:00
parent 40453f4b11
commit 098df0b927
+6 -3
View File
@@ -3,8 +3,12 @@ image: jdrouet/docker-with-buildx:stable
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
VERSION: 0.0.1
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$VERSION
# Major.Minor.Release
# Major - Shouldn't change often, Big changes to the site
# Minor - starts from 0 when Major is incremented +1 for each version that goes public
# Release - For each time a development milestone is reached
VERSION: 1.0.0
IMAGE_TAG: $CI_REGISTRY_IMAGE:$VERSION
services:
- docker:dind
@@ -17,4 +21,3 @@ build:
- docker buildx build --no-cache --platform linux/arm64,linux/amd64 -t $IMAGE_TAG --push .
only:
- main
- staging