local images = import 'images.libsonnet'; local environment = import 'node_modules/@sigyl/jsonnet-drone-environment/environment.libsonnet'; local login = import 'login.libsonnet'; function(config) function(secrets) images(config).docker { name +: 'build:', environment +: environment.environmentSecrets(secrets), volumes: [ { name: 'dockersock', path: '/var/run', }, ], commands: [ 'set -e', 'export NAME=%s' % config.name, 'export ROOT=%s' % config.root, login, 'sh .drone/build.sh', 'sh .drone/push.sh', ], }