Skip to content

Instantly share code, notes, and snippets.

@tboerger
Created October 9, 2019 12:22
Show Gist options
  • Save tboerger/55523d124c6b167d3c514f45ca095b04 to your computer and use it in GitHub Desktop.
Save tboerger/55523d124c6b167d3c514f45ca095b04 to your computer and use it in GitHub Desktop.
Drone JSONNET example
local pipeline() = {
kind: "pipeline",
name: "linux",
platform: {
os: "linux",
arch: "amd64",
},
steps: [
{
name: "test",
image: "golang:1.13",
commands: [
"go test -v ./...",
],
},
{
name: "build",
image: "golang:1.13",
commands: [
"go build",
],
},
{
name: "publish",
image: "plugins/docker",
settings: {
auto_tag: true,
auto_tag_suffix: "linux-amd64",
repo: "octocat/hello",
username: {
from_secret: "docker_username",
},
password: {
from_secret: "docker_password",
},
},
when: {
event: [
"push",
"tag",
],
},
},
],
};
[
pipeline(),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment