test: squid:4
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
e2146f7f4d
commit
71370c7b6c
|
@ -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'
|
||||||
),
|
),
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue