Try build image in ci
This commit is contained in:
parent
8d49e4d6cf
commit
b7813a14e8
1 changed files with 11 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
||||||
stages:
|
stages:
|
||||||
- test
|
# - test
|
||||||
- builder
|
- builjar
|
||||||
- buildimage
|
- buildimage
|
||||||
# - publish
|
# - publish
|
||||||
|
|
||||||
|
@ -17,14 +17,13 @@ stages:
|
||||||
- echo ${CI_COMMIT_REF_SLUG}
|
- echo ${CI_COMMIT_REF_SLUG}
|
||||||
- apt-get update && apt-get -qqy upgrade
|
- apt-get update && apt-get -qqy upgrade
|
||||||
|
|
||||||
test:
|
#test:
|
||||||
<<: *img
|
# <<: *img
|
||||||
stage: test
|
# stage: test
|
||||||
when: manual
|
# script:
|
||||||
script:
|
# - ./gradlew test
|
||||||
- ./gradlew test
|
|
||||||
|
|
||||||
builder:
|
buildjar:
|
||||||
<<: *img
|
<<: *img
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
|
@ -38,7 +37,7 @@ builder:
|
||||||
- echo "_____________end_________________"
|
- echo "_____________end_________________"
|
||||||
|
|
||||||
buildimage:
|
buildimage:
|
||||||
stage: image
|
stage: buildimage
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
|
@ -47,8 +46,6 @@ buildimage:
|
||||||
before_script:
|
before_script:
|
||||||
- echo "---------- BEFORE -------------"
|
- echo "---------- BEFORE -------------"
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin
|
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin
|
||||||
#- export IMAGE_DOCKERHUB_USER=$DOCKERHUB_USER
|
|
||||||
#- export IMAGE_DOCKERHUB_PASSWORD=$DOCKERHUB_PASSWORD
|
|
||||||
script:
|
script:
|
||||||
- export DOCKER_BUILDKIT=1
|
- export DOCKER_BUILDKIT=1
|
||||||
- docker build --tag=moderator-election-vaadin_fullstack --target=ci-image-stage --build-arg BUILDKIT_INLINE_CACHE=1 .
|
- docker build --tag=moderator-election-vaadin_fullstack --target=ci-image-stage --build-arg BUILDKIT_INLINE_CACHE=1 .
|
||||||
|
@ -62,4 +59,6 @@ buildimage:
|
||||||
|
|
||||||
#publish:
|
#publish:
|
||||||
# stage: publish
|
# stage: publish
|
||||||
|
#- export IMAGE_DOCKERHUB_USER=$DOCKERHUB_USER
|
||||||
|
#- export IMAGE_DOCKERHUB_PASSWORD=$DOCKERHUB_PASSWORD
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue