Browse Source

ci: better hook

tags/v0.0.7
Giles Bradshaw 2 years ago
parent
commit
96fb0942d5
3 changed files with 5 additions and 4 deletions
  1. +1
    -0
      .drone/.drone-home.yml
  2. +3
    -3
      .drone/drone-home.yml
  3. +1
    -1
      git-hooks/pre-commit

+ 1
- 0
.drone/.drone-home.yml 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}


+ 3
- 3
.drone/drone-home.yml 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:


+ 1
- 1
git-hooks/pre-commit 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"

Loading…
Cancel
Save