From 709faa97de4cb5fefe8b8fca9ac3a820d318bbad Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 24 Sep 2019 15:17:10 +0200 Subject: [PATCH] fix(Makefile): docker login --- .travis.yml | 2 ++ Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2d53f5b..1402b96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,8 @@ jobs: - name: deploy-container-image-tagged stage: deploy script: make container-image/push VERSION=${TRAVIS_TAG} CONTAINER_IMAGE_VERSION=${TRAVIS_TAG} + on: + tags: true notifications: email: diff --git a/Makefile b/Makefile index 41ad4af..6e95e8f 100644 --- a/Makefile +++ b/Makefile @@ -119,6 +119,7 @@ container-image/build: fi container-image/push: container-image/build + ${CONTAINER_RUNTIME} login ${REGISTRY_MIRROR} --username ${REGISTRY_USER} --password ${REGISTRY_PASSWORD} ${CONTAINER_RUNTIME} push ${REGISTRY_MIRROR}/${REGISTRY_NAMESPACE}/${CONTAINER_IMAGE_NAME}:${CONTAINER_IMAGE_VERSION} # CONTAINER STEPS - BINARY