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