2020-08-15 09:43:20 +00:00
|
|
|
local images = import 'images.libsonnet';
|
2020-08-19 20:01:46 +00:00
|
|
|
local environment = import 'node_modules/@sigyl/jsonnet-drone-environment/environment.libsonnet';
|
2020-08-15 09:43:20 +00:00
|
|
|
|
|
|
|
function(secrets)
|
|
|
|
images.docker {
|
|
|
|
name +: 'build:',
|
|
|
|
environment +: environment.environmentSecrets(secrets),
|
|
|
|
volumes: [
|
|
|
|
{
|
|
|
|
name: 'dockersock',
|
|
|
|
path: '/var/run',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
commands: [
|
|
|
|
'set -e',
|
|
|
|
'sh .drone/login.sh',
|
|
|
|
'sh .drone/build.sh',
|
|
|
|
'sh .drone/push.sh',
|
|
|
|
'sh .drone/logout.sh',
|
|
|
|
],
|
|
|
|
}
|