Login to dockerhub before pulling docker images for building (#9824)

This commit is contained in:
Mathieu Pillard 2020-10-31 11:22:38 +01:00 коммит произвёл GitHub
Родитель b1bdb4d249
Коммит fbd1fe8623
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -35,7 +35,11 @@ jobs:
"$CIRCLE_PROJECT_REPONAME"
"$CIRCLE_BUILD_URL"
> version.json
- run: docker build --pull -t addons-frontend .
- run:
name: Build the docker image
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build --pull -t addons-frontend .
- run: docker images
- run:
name: Write the sha256 sum to an artifact for verification
@ -50,7 +54,6 @@ jobs:
name: Push to repo
command: |
[ ! -z $DOCKERHUB_REPO ]
docker login -u $DOCKER_USER -p $DOCKER_PASS
echo $DOCKERHUB_REPO:$CIRCLE_TAG
docker tag addons-frontend $DOCKERHUB_REPO:$CIRCLE_TAG
docker images
@ -95,7 +98,11 @@ jobs:
"$CIRCLE_PROJECT_REPONAME"
"$CIRCLE_BUILD_URL"
> version.json
- run: docker build --pull -t addons-frontend .
- run:
name: Build the docker image
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build --pull -t addons-frontend .
- run: docker images
- run:
name: Write the sha256 sum to an artifact for verification
@ -110,7 +117,6 @@ jobs:
name: Push to repo
command: |
[ ! -z $DOCKERHUB_REPO ]
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker tag addons-frontend $DOCKERHUB_REPO:latest
docker push $DOCKERHUB_REPO:latest
- run: