Again, CI.

This commit is contained in:
Stanislav Nikitin 2020-09-28 01:28:13 +05:00
parent f3aab8d43b
commit 5e204d8bfa
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE

View File

@ -17,6 +17,7 @@ stages:
before_script: before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker login -u $DOCKERHUB_USER -p "$DOCKERHUB_PASSWORD"
- docker info - docker info
build-local-registry-latest: build-local-registry-latest:
@ -42,7 +43,6 @@ build-dockerhub-latest:
tags: tags:
- docker - docker
script: 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 - docker push $DOCKERHUB_IMAGE_LATEST
@ -51,7 +51,6 @@ build-dockerhub-version:
tags: tags:
- docker - docker
script: 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 - docker push $DOCKERHUB_IMAGE_TAGGED
only: only: