docker login if needed
This commit is contained in:
parent
41c22f62ab
commit
c6683de2b3
|
@ -32,6 +32,7 @@ pull-compose:
|
||||||
@- echo "\n### pulling image(s)"
|
@- echo "\n### pulling image(s)"
|
||||||
@- $(foreach ctx,$(DEPLOY_HOSTS), \
|
@- $(foreach ctx,$(DEPLOY_HOSTS), \
|
||||||
docker context use $(ctx); \
|
docker context use $(ctx); \
|
||||||
|
if [ $(DOCKER_LOGIN) == 'true' ] then docker login -u $(DOCKER_USER) -p $(DOCKER_PASS) $(DOCKER_REGISTRY) fi; \
|
||||||
docker pull $(DOCKER_IMAGE); \
|
docker pull $(DOCKER_IMAGE); \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue