From 2c51e079d6399e59850c131f3518111c7a8e8210 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 30 Jan 2022 12:46:06 +0300 Subject: [PATCH] Revert "fix cicd" This reverts commit 4c2934652471a18d408890974dabd332509ca356. --- .gitlab-ci.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 978d055..72bd7ba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,10 +8,9 @@ build: variables: MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository" only: - - test -# - /^v.*$/ -# except: -# - branches + - /^v.*$/ + except: + - branches script: - 'mvn -U clean package' artifacts: @@ -22,10 +21,9 @@ docker-build: image: upagge/docker-buildx:latest stage: deploy only: -# - /^v.*$/ - - test -# except: -# - branches + - /^v.*$/ + except: + - branches services: - docker:dind before_script: @@ -33,4 +31,4 @@ docker-build: script: - cd gitlab-app - docker buildx create --use - - docker buildx build --push --platform linux/amd64,linux/arm64/v8,windows/amd64 -t "$CI_REGISTRY_IMAGE:latest" . \ No newline at end of file + - docker buildx build --push --platform linux/amd64,linux/arm64/v8,windows/amd64 -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" . \ No newline at end of file