test: squid:4
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-08-06 15:09:33 +01:00
parent e2146f7f4d
commit 71370c7b6c
2 changed files with 33 additions and 0 deletions

View File

@ -3,6 +3,7 @@ local environment = import 'node_modules/@sigyl/jsonnet-drone-environment/enviro
local compose = import 'node_modules/@sigyl/jsonnet-compose/compose.libsonnet'; local compose = import 'node_modules/@sigyl/jsonnet-compose/compose.libsonnet';
local secretSecrets = import 'lib/secret-secrets.libsonnet'; local secretSecrets = import 'lib/secret-secrets.libsonnet';
local publicSecrets = import 'lib/public-secrets.libsonnet'; local publicSecrets = import 'lib/public-secrets.libsonnet';
local util = import 'lib/util.libsonnet';
[ [
{ {
kind: 'pipeline', kind: 'pipeline',
@ -45,6 +46,14 @@ local publicSecrets = import 'lib/public-secrets.libsonnet';
}, },
], ],
steps:[ steps:[
util.printEnv(
'squid-env',
'ca-crt'
)(
images.ssh
) {
name: 'print env',
},
images.scp( images.scp(
'/stack/squid' '/stack/squid'
), ),

View File

@ -8,6 +8,30 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: print env
image: appleboy/drone-ssh
settings:
envs:
- drone_tag
- drone_commit
- drone_build_number
- drone_repo_name
- drone_repo_namespace
- ca_crt
host:
from_secret: ssh-host
key:
from_secret: ssh-key
port:
from_secret: ssh-port
script:
- "echo \"export CA_CRT='$${CA_CRT}'\" >> squid-env # \"ca-crt\""
username:
from_secret: ssh-user
environment:
CA_CRT:
from_secret: ca-crt
- name: scp - name: scp
image: appleboy/drone-scp image: appleboy/drone-scp
settings: settings: