ci: uncomment out docker build step
This commit is contained in:
parent
647c2f34bd
commit
1e21a60a81
|
@ -44,7 +44,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',
|
||||
|
@ -66,7 +66,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'),
|
||||
|
|
|
@ -29,6 +29,26 @@ 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:
|
||||
|
|
|
@ -11,3 +11,7 @@ cd myCA
|
|||
openssl genrsa -out CA_key.pem 2048
|
||||
openssl req -x509 -days 600 -new -nodes -key CA_key.pem -out CA_crt.pem -extensions v3_ca -config openssl.cnf -subj "/C=US/ST=California/L=Mountain View/O=Google/OU=Enterprise/CN=MyCA"
|
||||
```
|
||||
|
||||
## releasing
|
||||
|
||||
[see here](https://sigyl.com/releases/)
|
|
@ -1,6 +1,10 @@
|
|||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"release": "standard-version",
|
||||
"jsonnet:home": "drone jsonnet --source .drone/drone-home.jsonnet --target .drone/drone-home.yml --stream"
|
||||
},
|
||||
"devDependencies": {
|
||||
"standard-version": "^8.0.2"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue