successful
This commit is contained in:
parent
993ade5f83
commit
75cdbeade0
@ -8,9 +8,9 @@ build:
|
|||||||
variables:
|
variables:
|
||||||
MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository"
|
MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository"
|
||||||
only:
|
only:
|
||||||
- test
|
- /^v.*$/
|
||||||
# except:
|
except:
|
||||||
# - branches
|
- branches
|
||||||
script:
|
script:
|
||||||
- 'mvn -U clean package'
|
- 'mvn -U clean package'
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -21,9 +21,9 @@ docker-build:
|
|||||||
image: upagge/docker-buildx:latest
|
image: upagge/docker-buildx:latest
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
only:
|
||||||
- test
|
- /^v.*$/
|
||||||
# except:
|
except:
|
||||||
# - branches
|
- branches
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
before_script:
|
before_script:
|
||||||
@ -31,23 +31,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 -t "upagge/test:latest" .
|
- docker buildx build --push --platform linux/amd64,linux/arm64/v8,linux/arm64/v7 -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" .
|
||||||
# - docker push "$CI_REGISTRY_IMAGE:latest"
|
|
||||||
# - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
|
||||||
|
|
||||||
#docker-build-master:
|
|
||||||
# image: docker/buildx-bin
|
|
||||||
# stage: deploy
|
|
||||||
# only:
|
|
||||||
# - /^v.*$/
|
|
||||||
# except:
|
|
||||||
# - branches
|
|
||||||
# services:
|
|
||||||
# - docker:dind
|
|
||||||
# before_script:
|
|
||||||
# - echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin
|
|
||||||
# script:
|
|
||||||
# - cd gitlab-app
|
|
||||||
# - docker build --no-cache -f Dockerfile-linux -t "$CI_REGISTRY_IMAGE:latest" . -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
|
||||||
# - docker push "$CI_REGISTRY_IMAGE:latest"
|
|
||||||
# - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
|
Loading…
Reference in New Issue
Block a user