.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-08-06 03:25:56 +01:00
parent 0c24bb2b78
commit 1acb2e202d
2 changed files with 4 additions and 28 deletions

View File

@ -12,11 +12,11 @@ local publicSecrets = import 'lib/public-secrets.libsonnet';
disable: false,
depth: 0,
},
trigger: {
/*trigger: {
event: [
'tag',
],
},
},*/
services: [
images.docker {
privileged: true,
@ -49,7 +49,7 @@ local publicSecrets = import 'lib/public-secrets.libsonnet';
'/stack/squid'
),
images.wait(15),
images.docker {
/*images.docker {
name +: 'build docker image:',
environment +: environment.environmentSecrets([
'LOCAL_DOCKER_REGISTRY',
@ -71,7 +71,7 @@ local publicSecrets = import 'lib/public-secrets.libsonnet';
'docker push $${LOCAL_DOCKER_REGISTRY}squid',
'docker logout $${LOCAL_DOCKER_REGISTRY}',
],
},
},*/
compose([
environment.envSet('local-docker-registry'),
environment.envSet('local-registry-password'),

View File

@ -29,26 +29,6 @@ steps:
commands:
- sleep 15
- name: "dockerbuild docker image:"
image: docker:dind
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}
environment:
LOCAL_DOCKER_REGISTRY:
from_secret: local-docker-registry
LOCAL_REGISTRY_PASSWORD:
from_secret: local-registry-password
volumes:
- name: dockersock
path: /var/run
- name: deploy squid
image: appleboy/drone-ssh
settings:
@ -105,8 +85,4 @@ volumes:
host:
path: /etc/docker/certs.d
trigger:
event:
- tag
...