More on CI.
This commit is contained in:
parent
945e4bea6a
commit
c1c3086087
@ -5,6 +5,7 @@ services:
|
||||
|
||||
variables:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
DOCKER_TCP_PORT: 2375
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
LOCAL_REGISTRY_IMAGE_LATEST: $CI_REGISTRY_IMAGE:latest
|
||||
LOCAL_REGISTRY_IMAGE_TAGGED: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
|
||||
@ -42,7 +43,7 @@ build-dockerhub-latest:
|
||||
- docker
|
||||
script:
|
||||
- docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASSWORD
|
||||
- docker build --pull -t $DOCKERHUB_IMAGE_LATEST
|
||||
- docker build --pull -t $DOCKERHUB_IMAGE_LATEST .
|
||||
- docker push $DOCKERHUB_IMAGE_LATEST
|
||||
|
||||
build-dockerhub-version:
|
||||
@ -51,7 +52,7 @@ build-dockerhub-version:
|
||||
- docker
|
||||
script:
|
||||
- docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASSWORD
|
||||
- docker build --pull -t $DOCKERHUB_IMAGE_TAGGED
|
||||
- docker build --pull -t $DOCKERHUB_IMAGE_TAGGED .
|
||||
- docker push $DOCKERHUB_IMAGE_TAGGED
|
||||
only:
|
||||
- tags
|
||||
|
Loading…
Reference in New Issue
Block a user