More on CI.

This commit is contained in:
Stanislav Nikitin 2020-09-28 01:17:21 +05:00
parent 945e4bea6a
commit c1c3086087
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE

View File

@ -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