Merge pull request #59 from mozilla/more-ci-iteration
properly push tags to dockerhub
This commit is contained in:
Коммит
75110c265a
|
@ -34,7 +34,7 @@ jobs:
|
|||
export DOCKER_IMAGE="mozilla/${APP_NAME}:${CIRCLE_TAG}"
|
||||
fi
|
||||
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ] || [ -n "${CIRCLE_TAG}" ]; then
|
||||
echo "${DOCKER_PASSWORD}" | docker login -u="${DOCKER_USERNAME}" --password-stdin
|
||||
docker tag "${APP_NAME}:build" "${DOCKER_IMAGE}"
|
||||
docker push "${DOCKER_IMAGE}"
|
||||
|
|
Загрузка…
Ссылка в новой задаче