updated versioning and image tag to be more intuitive
This commit is contained in:
+6
-3
@@ -3,8 +3,12 @@ image: jdrouet/docker-with-buildx:stable
|
|||||||
variables:
|
variables:
|
||||||
DOCKER_HOST: tcp://docker:2375
|
DOCKER_HOST: tcp://docker:2375
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
VERSION: 0.0.1
|
# Major.Minor.Release
|
||||||
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$VERSION
|
# 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:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
@@ -17,4 +21,3 @@ build:
|
|||||||
- docker buildx build --no-cache --platform linux/arm64,linux/amd64 -t $IMAGE_TAG --push .
|
- docker buildx build --no-cache --platform linux/arm64,linux/amd64 -t $IMAGE_TAG --push .
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
- staging
|
|
||||||
|
|||||||
Reference in New Issue
Block a user