fix: rename local_registry_password
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2e09f39cdc
commit
eb113d091d
|
@ -71,7 +71,7 @@ local util = import 'lib/util.libsonnet';
|
|||
name +: 'build docker:dind image:',
|
||||
environment +: environment.environmentSecrets([
|
||||
'LOCAL_DOCKER_REGISTRY',
|
||||
'LOCAL_REGISTRY_PASSWORD',
|
||||
'REGISTRY_PASSWORD',
|
||||
'CA_CRT'
|
||||
]),
|
||||
volumes: [
|
||||
|
@ -82,37 +82,14 @@ local util = import 'lib/util.libsonnet';
|
|||
],
|
||||
commands: [
|
||||
'set -e',
|
||||
'docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}"',
|
||||
'docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${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',
|
||||
'docker logout $${LOCAL_DOCKER_REGISTRY}',
|
||||
],
|
||||
}, /*
|
||||
images.docker {
|
||||
name +: 'build docker image:',
|
||||
environment +: environment.environmentSecrets([
|
||||
'LOCAL_DOCKER_REGISTRY',
|
||||
'LOCAL_REGISTRY_PASSWORD',
|
||||
]),
|
||||
volumes: [
|
||||
{
|
||||
name: 'dockersock',
|
||||
path: '/var/run',
|
||||
},
|
||||
],
|
||||
commands: [
|
||||
'set -e',
|
||||
'pwd',
|
||||
'sleep 15',
|
||||
'cd docker',
|
||||
'docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}"',
|
||||
'docker build . -t $${LOCAL_DOCKER_REGISTRY}squid',
|
||||
'docker push $${LOCAL_DOCKER_REGISTRY}squid',
|
||||
'docker logout $${LOCAL_DOCKER_REGISTRY}',
|
||||
],
|
||||
} */
|
||||
},
|
||||
compose([
|
||||
environment.envSet('local-docker-registry'),
|
||||
environment.envSet('registry-password'),
|
||||
|
|
|
@ -74,7 +74,7 @@ steps:
|
|||
image: docker:dind
|
||||
commands:
|
||||
- set -e
|
||||
- docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}"
|
||||
- docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${REGISTRY_PASSWORD}"
|
||||
- cd docker-dind
|
||||
- echo "$${CA_CRT}" > CA_crt.crt
|
||||
- docker build . -t $${LOCAL_DOCKER_REGISTRY}docker:dind
|
||||
|
@ -85,8 +85,8 @@ steps:
|
|||
from_secret: ca-crt
|
||||
LOCAL_DOCKER_REGISTRY:
|
||||
from_secret: local-docker-registry
|
||||
LOCAL_REGISTRY_PASSWORD:
|
||||
from_secret: local-registry-password
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: registry-password
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
|
|
Loading…
Reference in New Issue