updated cases the pipeline in run
This commit is contained in:
+3
-2
@@ -1,6 +1,7 @@
|
|||||||
image: jdrouet/docker-with-buildx:stable
|
image: jdrouet/docker-with-buildx:stable
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
BUILD: 0
|
||||||
DOCKER_HOST: tcp://docker:2375
|
DOCKER_HOST: tcp://docker:2375
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
# Major.Minor.Release
|
# Major.Minor.Release
|
||||||
@@ -19,5 +20,5 @@ build:
|
|||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- 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:
|
rules:
|
||||||
- main
|
- if: $CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "staging") && $BUILD == "1"
|
||||||
|
|||||||
Reference in New Issue
Block a user