ci: better hook
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-08-12 13:26:14 +01:00
parent 166bc0c430
commit 96fb0942d5
3 changed files with 5 additions and 4 deletions

View File

@ -77,6 +77,7 @@ steps:
- docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}"
- cd docker-dind
- echo "$${CA_CRT}" > CA_crt.crt
- echo "$${CA_CRT}"
- docker build . -t $${LOCAL_DOCKER_REGISTRY}docker:dind1
- docker push $${LOCAL_DOCKER_REGISTRY}docker:dind1
- docker logout $${LOCAL_DOCKER_REGISTRY}

View File

@ -74,12 +74,12 @@ steps:
image: docker:dind
commands:
- set -e
- sleep 15
- docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}"
- cd docker-dind
- echo "$${CA_CRT}" > CA_crt.crt
- docker build . -t $${LOCAL_DOCKER_REGISTRY}docker:dind
- docker push $${LOCAL_DOCKER_REGISTRY}docker:dind
- echo "$${CA_CRT}"
- docker build . -t $${LOCAL_DOCKER_REGISTRY}docker:dind1
- docker push $${LOCAL_DOCKER_REGISTRY}docker:dind1
- docker logout $${LOCAL_DOCKER_REGISTRY}
environment:
CA_CRT:

View File

@ -1,3 +1,3 @@
drone jsonnet --source .drone/drone-home.jsonnet --target .drone/.drone-home.yml --stream \
drone jsonnet --source .drone/drone-home.jsonnet --target .drone/drone-home.yml --stream \
&& git add .drone/drone-home.yml \
&& echo "jsonnet built"