This commit is contained in:
Struchkov Mark 2022-01-30 12:35:24 +03:00
parent c5d4decf39
commit 4c29346524

View File

@ -8,9 +8,10 @@ build:
variables: variables:
MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository" MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository"
only: only:
- /^v.*$/ - test
except: # - /^v.*$/
- branches # except:
# - branches
script: script:
- 'mvn -U clean package' - 'mvn -U clean package'
artifacts: artifacts:
@ -21,9 +22,10 @@ docker-build:
image: upagge/docker-buildx:latest image: upagge/docker-buildx:latest
stage: deploy stage: deploy
only: only:
- /^v.*$/ # - /^v.*$/
except: - test
- branches # except:
# - branches
services: services:
- docker:dind - docker:dind
before_script: before_script:
@ -31,4 +33,4 @@ docker-build:
script: script:
- cd gitlab-app - cd gitlab-app
- docker buildx create --use - docker buildx create --use
- docker buildx build --push --platform linux/amd64,linux/arm64/v8,windows/amd64 -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" . - docker buildx build --push --platform linux/amd64,linux/arm64/v8,windows/amd64 -t "$CI_REGISTRY_IMAGE:latest" .