ci: force pull of image when deploying
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-08-05 12:43:05 +01:00
parent 38f7af0b5c
commit 647c2f34bd
2 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ local publicSecrets = import 'lib/public-secrets.libsonnet';
"sleep 31", "sleep 31",
'export SQUID_IMAGE=$${LOCAL_DOCKER_REGISTRY}squid', 'export SQUID_IMAGE=$${LOCAL_DOCKER_REGISTRY}squid',
'docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}"', 'docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}"',
'docker pull $${SQUID_IMAGE}',
"docker stack deploy -c docker-compose.yml squid", "docker stack deploy -c docker-compose.yml squid",
] ]
} }

View File

@ -57,6 +57,7 @@ steps:
- sleep 31 - sleep 31
- export SQUID_IMAGE=$${LOCAL_DOCKER_REGISTRY}squid - export SQUID_IMAGE=$${LOCAL_DOCKER_REGISTRY}squid
- docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}" - docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}"
- docker pull $${SQUID_IMAGE}
- docker stack deploy -c docker-compose.yml squid - docker stack deploy -c docker-compose.yml squid
username: username:
from_secret: ssh-user from_secret: ssh-user