mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 10:25:19 +00:00
Move cncd/pipeline/pipeline/ to pipeline/ (#347)
* Refactor: move cncd/pipeline/ to pipeline/ * Refactor: move pipeline/pipeline/ to pipeline/
This commit is contained in:
17
pipeline/samples/sample_1/.env
Normal file
17
pipeline/samples/sample_1/.env
Normal file
@@ -0,0 +1,17 @@
|
||||
CI_REPO=drone/envsubst
|
||||
CI_REPO_NAME=drone/envsubst
|
||||
CI_REPO_LINK=https://github.com/drone/envsubst
|
||||
CI_REPO_REMOTE=https://github.com/drone/envsubst.git
|
||||
CI_REPO_PRIVATE=false
|
||||
CI_BUILD_NUMBER=6
|
||||
CI_BUILD_CREATED=1486119586
|
||||
CI_BUILD_STARTED=1486119585
|
||||
CI_BUILD_EVENT=push
|
||||
CI_BUILD_LINK=
|
||||
CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6
|
||||
CI_COMMIT_REF=refs/heads/master
|
||||
CI_COMMIT_REFSPEC=
|
||||
CI_COMMIT_BRANCH=master
|
||||
CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior"
|
||||
CI_COMMIT_AUTHOR=bradrydzewski
|
||||
CI_COMMIT_AUTHOR_NAME=bradrydzewski
|
11
pipeline/samples/sample_1/README.md
Normal file
11
pipeline/samples/sample_1/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
Compile the yaml to the intermediate representation:
|
||||
|
||||
```
|
||||
pipec compile
|
||||
```
|
||||
|
||||
Execute the intermediate representation:
|
||||
|
||||
```
|
||||
pipec exec
|
||||
```
|
159
pipeline/samples/sample_1/pipeline.json
Normal file
159
pipeline/samples/sample_1/pipeline.json
Normal file
@@ -0,0 +1,159 @@
|
||||
{
|
||||
"pipeline": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"image": "plugins/git:latest",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"PLUGIN_DEPTH": "50"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_0",
|
||||
"alias": "build",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_0",
|
||||
"alias": "build",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJnbyBnZXQgLXQgLi8uLi4iCmdvIGdldCAtdCAuLy4uLgoKZWNobyArICJnbyBidWlsZCIKZ28gYnVpbGQKCmVjaG8gKyAiZ28gdGVzdCAtdiIKZ28gdGVzdCAtdgoK",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "bridge"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "local"
|
||||
}
|
||||
]
|
||||
}
|
16
pipeline/samples/sample_1/pipeline.yml
Normal file
16
pipeline/samples/sample_1/pipeline.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/github.com/drone/envsubst
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: plugins/git
|
||||
depth: 50
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: golang:1.7
|
||||
commands:
|
||||
- go get -t ./...
|
||||
- go build
|
||||
- go test -v
|
17
pipeline/samples/sample_10_windows/.env
Normal file
17
pipeline/samples/sample_10_windows/.env
Normal file
@@ -0,0 +1,17 @@
|
||||
CI_REPO=drone/envsubst
|
||||
CI_REPO_NAME=drone/envsubst
|
||||
CI_REPO_LINK=https://github.com/drone/envsubst
|
||||
CI_REPO_REMOTE=https://github.com/drone/envsubst.git
|
||||
CI_REPO_PRIVATE=false
|
||||
CI_BUILD_NUMBER=6
|
||||
CI_BUILD_CREATED=1486119586
|
||||
CI_BUILD_STARTED=1486119585
|
||||
CI_BUILD_EVENT=push
|
||||
CI_BUILD_LINK=
|
||||
CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6
|
||||
CI_COMMIT_REF=refs/heads/master
|
||||
CI_COMMIT_REFSPEC=
|
||||
CI_COMMIT_BRANCH=master
|
||||
CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior"
|
||||
CI_COMMIT_AUTHOR=bradrydzewski
|
||||
CI_COMMIT_AUTHOR_NAME=bradrydzewski
|
11
pipeline/samples/sample_10_windows/README.md
Normal file
11
pipeline/samples/sample_10_windows/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
Compile the yaml to the intermediate representation:
|
||||
|
||||
```
|
||||
pipec compile --system-arch windows/amd64
|
||||
```
|
||||
|
||||
Execute the intermediate representation:
|
||||
|
||||
```
|
||||
pipec exec
|
||||
```
|
170
pipeline/samples/sample_10_windows/pipeline.json
Normal file
170
pipeline/samples/sample_10_windows/pipeline.json
Normal file
@@ -0,0 +1,170 @@
|
||||
{
|
||||
"pipeline": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"image": "plugins/git:windows",
|
||||
"working_dir": "c:\\gopath/src\\github.com\\drone\\envsubst",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "windows/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "c:\\gopath/src\\github.com\\drone\\envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "windows/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "c:\\gopath/src\\github.com\\drone\\envsubst",
|
||||
"PLUGIN_DEPTH": "50"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:c:\\gopath"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"git"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_0",
|
||||
"alias": "build",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_0",
|
||||
"alias": "build",
|
||||
"image": "golang:1.10.1-nanoserver-sac2016",
|
||||
"working_dir": "c:\\gopath/src\\github.com\\drone\\envsubst",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CiRFcnJvckFjdGlvblByZWZlcmVuY2UgPSAnU3RvcCc7CiZjbWQgL2MgIm1rZGlyIGM6XHJvb3QiOwppZiAoJEVudjpDSV9ORVRSQ19NQUNISU5FKSB7CiRuZXRyYz1bc3RyaW5nXTo6Rm9ybWF0KCJ7MH1cX25ldHJjIiwkRW52OkhPTUUpOwoibWFjaGluZSAkRW52OkNJX05FVFJDX01BQ0hJTkUiID4+ICRuZXRyYzsKImxvZ2luICRFbnY6Q0lfTkVUUkNfVVNFUk5BTUUiID4+ICRuZXRyYzsKInBhc3N3b3JkICRFbnY6Q0lfTkVUUkNfUEFTU1dPUkQiID4+ICRuZXRyYzsKfTsKW0Vudmlyb25tZW50XTo6U2V0RW52aXJvbm1lbnRWYXJpYWJsZSgiQ0lfTkVUUkNfUEFTU1dPUkQiLCRudWxsKTsKW0Vudmlyb25tZW50XTo6U2V0RW52aXJvbm1lbnRWYXJpYWJsZSgiQ0lfU0NSSVBUIiwkbnVsbCk7CltFbnZpcm9ubWVudF06OlNldEVudmlyb25tZW50VmFyaWFibGUoIkRST05FX05FVFJDX1VTRVJOQU1FIiwkbnVsbCk7CltFbnZpcm9ubWVudF06OlNldEVudmlyb25tZW50VmFyaWFibGUoIkRST05FX05FVFJDX1BBU1NXT1JEIiwkbnVsbCk7CgpXcml0ZS1PdXRwdXQgKCcrICJnbyBnZXQgLXQgLlxcLi4uIicpOyAgW0NvbnNvbGVdOjpPdXQuRmx1c2goKQomIGdvIGdldCAtdCAuXC4uLjsgaWYgKCRMQVNURVhJVENPREUgLW5lIDApIHtleGl0ICRMQVNURVhJVENPREV9CgpXcml0ZS1PdXRwdXQgKCcrICJnbyBidWlsZCInKTsgIFtDb25zb2xlXTo6T3V0LkZsdXNoKCkKJiBnbyBidWlsZDsgaWYgKCRMQVNURVhJVENPREUgLW5lIDApIHtleGl0ICRMQVNURVhJVENPREV9CgpXcml0ZS1PdXRwdXQgKCcrICJnbyB0ZXN0IC12IicpOyAgW0NvbnNvbGVdOjpPdXQuRmx1c2goKQomIGdvIHRlc3QgLXY7IGlmICgkTEFTVEVYSVRDT0RFIC1uZSAwKSB7ZXhpdCAkTEFTVEVYSVRDT0RFfQoK",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "windows/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "c:\\gopath/src\\github.com\\drone\\envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "windows/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "c:\\gopath/src\\github.com\\drone\\envsubst",
|
||||
"HOME": "c:\\root",
|
||||
"SHELL": "powershell.exe"
|
||||
},
|
||||
"entrypoint": [
|
||||
"powershell",
|
||||
"-noprofile",
|
||||
"-noninteractive",
|
||||
"-command"
|
||||
],
|
||||
"command": [
|
||||
"[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Env:CI_SCRIPT)) | iex"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:c:\\gopath"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"build"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "nat"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "local"
|
||||
}
|
||||
],
|
||||
"secrets": null
|
||||
}
|
18
pipeline/samples/sample_10_windows/pipeline.yml
Normal file
18
pipeline/samples/sample_10_windows/pipeline.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
platform: windows/amd64
|
||||
|
||||
workspace:
|
||||
base: c:\gopath
|
||||
path: src\github.com\drone\envsubst
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: plugins/git:windows
|
||||
depth: 50
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: golang:1.10.1-nanoserver-sac2016
|
||||
commands:
|
||||
- go get -t .\...
|
||||
- go build
|
||||
- go test -v
|
17
pipeline/samples/sample_2/.env
Normal file
17
pipeline/samples/sample_2/.env
Normal file
@@ -0,0 +1,17 @@
|
||||
CI_REPO=go-sql-driver/mysql
|
||||
CI_REPO_NAME=go-sql-driver/mysql
|
||||
CI_REPO_LINK=https://github.com/go-sql-driver/mysql
|
||||
CI_REPO_REMOTE=https://github.com/go-sql-driver/mysql.git
|
||||
CI_REPO_PRIVATE=false
|
||||
CI_BUILD_NUMBER=530
|
||||
CI_BUILD_CREATED=1486119586
|
||||
CI_BUILD_STARTED=1486119585
|
||||
CI_BUILD_EVENT=push
|
||||
CI_BUILD_LINK=
|
||||
CI_COMMIT_SHA=2e00b5cd70399450106cec6431c2e2ce3cae5034
|
||||
CI_COMMIT_REF=refs/heads/master
|
||||
CI_COMMIT_REFSPEC=
|
||||
CI_COMMIT_BRANCH=master
|
||||
CI_COMMIT_MESSAGE="Fix many urls"
|
||||
CI_COMMIT_AUTHOR=egorsmkv
|
||||
CI_COMMIT_AUTHOR_NAME=egorsmkv
|
231
pipeline/samples/sample_2/pipeline.json
Normal file
231
pipeline/samples/sample_2/pipeline.json
Normal file
@@ -0,0 +1,231 @@
|
||||
{
|
||||
"pipeline": [
|
||||
{
|
||||
"name": "pipeline_clone",
|
||||
"alias": "clone",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_clone",
|
||||
"image": "plugins/git:latest",
|
||||
"working_dir": "/go/src/github.com/go-sql-driver/mysql",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "530",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "egorsmkv",
|
||||
"CI_COMMIT_AUTHOR_NAME": "egorsmkv",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "Fix many urls",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034",
|
||||
"CI_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git",
|
||||
"CI_REPO": "go-sql-driver/mysql",
|
||||
"CI_REPO_LINK": "https://github.com/go-sql-driver/mysql",
|
||||
"CI_REPO_NAME": "go-sql-driver/mysql",
|
||||
"CI_REPO_REMOTE": "https://github.com/go-sql-driver/mysql.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "530",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "egorsmkv",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "egorsmkv",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "Fix many urls",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034",
|
||||
"DRONE_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git",
|
||||
"DRONE_REPO": "go-sql-driver/mysql",
|
||||
"DRONE_REPO_LINK": "https://github.com/go-sql-driver/mysql",
|
||||
"DRONE_REPO_NAME": "go-sql-driver/mysql",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/go-sql-driver/mysql.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql",
|
||||
"PLUGIN_DEPTH": "0"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_services",
|
||||
"alias": "services",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_services_0",
|
||||
"alias": "database",
|
||||
"image": "mysql:latest",
|
||||
"detach": true,
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "530",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "egorsmkv",
|
||||
"CI_COMMIT_AUTHOR_NAME": "egorsmkv",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "Fix many urls",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034",
|
||||
"CI_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git",
|
||||
"CI_REPO": "go-sql-driver/mysql",
|
||||
"CI_REPO_LINK": "https://github.com/go-sql-driver/mysql",
|
||||
"CI_REPO_NAME": "go-sql-driver/mysql",
|
||||
"CI_REPO_REMOTE": "https://github.com/go-sql-driver/mysql.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "530",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "egorsmkv",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "egorsmkv",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "Fix many urls",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034",
|
||||
"DRONE_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git",
|
||||
"DRONE_REPO": "go-sql-driver/mysql",
|
||||
"DRONE_REPO_LINK": "https://github.com/go-sql-driver/mysql",
|
||||
"DRONE_REPO_NAME": "go-sql-driver/mysql",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/go-sql-driver/mysql.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql",
|
||||
"MYSQL_ALLOW_EMPTY_PASSWORD": "yes",
|
||||
"MYSQL_DATABASE": "gotest"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"database"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_0",
|
||||
"alias": "build",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_0",
|
||||
"alias": "build",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/go-sql-driver/mysql",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "530",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "egorsmkv",
|
||||
"CI_COMMIT_AUTHOR_NAME": "egorsmkv",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "Fix many urls",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034",
|
||||
"CI_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git",
|
||||
"CI_REPO": "go-sql-driver/mysql",
|
||||
"CI_REPO_LINK": "https://github.com/go-sql-driver/mysql",
|
||||
"CI_REPO_NAME": "go-sql-driver/mysql",
|
||||
"CI_REPO_REMOTE": "https://github.com/go-sql-driver/mysql.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJzbGVlcCAyMCIKc2xlZXAgMjAKCmVjaG8gKyAiZ28gZ2V0IC12IC10IgpnbyBnZXQgLXYgLXQKCmVjaG8gKyAiZ28gdGVzdCAtdiIKZ28gdGVzdCAtdgoK",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "530",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "egorsmkv",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "egorsmkv",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "Fix many urls",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034",
|
||||
"DRONE_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git",
|
||||
"DRONE_REPO": "go-sql-driver/mysql",
|
||||
"DRONE_REPO_LINK": "https://github.com/go-sql-driver/mysql",
|
||||
"DRONE_REPO_NAME": "go-sql-driver/mysql",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/go-sql-driver/mysql.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql",
|
||||
"HOME": "/root",
|
||||
"MYSQL_TEST_ADDR": "database:3306",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"database"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "bridge"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "local"
|
||||
}
|
||||
]
|
||||
}
|
20
pipeline/samples/sample_2/pipeline.yml
Normal file
20
pipeline/samples/sample_2/pipeline.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/github.com/go-sql-driver/mysql
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: golang:1.7
|
||||
environment:
|
||||
MYSQL_TEST_ADDR: database:3306
|
||||
commands:
|
||||
- sleep 20
|
||||
- go get -v -t
|
||||
- go test -v
|
||||
|
||||
services:
|
||||
database:
|
||||
image: mysql
|
||||
environment:
|
||||
- MYSQL_DATABASE=gotest
|
||||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
18
pipeline/samples/sample_3/.env
Normal file
18
pipeline/samples/sample_3/.env
Normal file
@@ -0,0 +1,18 @@
|
||||
CI_REPO=drone/envsubst
|
||||
CI_REPO_NAME=drone/envsubst
|
||||
CI_REPO_LINK=https://github.com/drone/envsubst
|
||||
CI_REPO_REMOTE=https://github.com/drone/envsubst.git
|
||||
CI_REPO_PRIVATE=false
|
||||
CI_BUILD_NUMBER=6
|
||||
CI_BUILD_CREATED=1486119586
|
||||
CI_BUILD_STARTED=1486119585
|
||||
CI_BUILD_EVENT=push
|
||||
CI_BUILD_LINK=
|
||||
CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6
|
||||
CI_COMMIT_REF=refs/heads/master
|
||||
CI_COMMIT_REFSPEC=
|
||||
CI_COMMIT_BRANCH=master
|
||||
CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior"
|
||||
CI_COMMIT_AUTHOR=bradrydzewski
|
||||
CI_COMMIT_AUTHOR_NAME=bradrydzewski
|
||||
|
235
pipeline/samples/sample_3/pipeline.json
Normal file
235
pipeline/samples/sample_3/pipeline.json
Normal file
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"pipeline": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"image": "plugins/git:latest",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"PLUGIN_DEPTH": "50"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_0",
|
||||
"alias": "build",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_0",
|
||||
"alias": "build",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgZmFpbCIKZWNobyB0aGlzIHN0ZXAgc2hvdWxkIGZhaWwKCmVjaG8gKyAiZXhpdCAxIgpleGl0IDEKCg==",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_1",
|
||||
"alias": "test",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_1",
|
||||
"alias": "test",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgbmV2ZXIgZXhlY3V0ZSIKZWNobyB0aGlzIHN0ZXAgc2hvdWxkIG5ldmVyIGV4ZWN1dGUKCg==",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "bridge"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "local"
|
||||
}
|
||||
]
|
||||
}
|
19
pipeline/samples/sample_3/pipeline.yml
Normal file
19
pipeline/samples/sample_3/pipeline.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/github.com/drone/envsubst
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: plugins/git
|
||||
depth: 50
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: golang:1.7
|
||||
commands:
|
||||
- echo this step should fail
|
||||
- exit 1
|
||||
test:
|
||||
image: golang:1.7
|
||||
commands:
|
||||
- echo this step should never execute
|
17
pipeline/samples/sample_4/.env
Normal file
17
pipeline/samples/sample_4/.env
Normal file
@@ -0,0 +1,17 @@
|
||||
CI_REPO=drone/envsubst
|
||||
CI_REPO_NAME=drone/envsubst
|
||||
CI_REPO_LINK=https://github.com/drone/envsubst
|
||||
CI_REPO_REMOTE=https://github.com/drone/envsubst.git
|
||||
CI_REPO_PRIVATE=false
|
||||
CI_BUILD_NUMBER=6
|
||||
CI_BUILD_CREATED=1486119586
|
||||
CI_BUILD_STARTED=1486119585
|
||||
CI_BUILD_EVENT=push
|
||||
CI_BUILD_LINK=
|
||||
CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6
|
||||
CI_COMMIT_REF=refs/heads/master
|
||||
CI_COMMIT_REFSPEC=
|
||||
CI_COMMIT_BRANCH=master
|
||||
CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior"
|
||||
CI_COMMIT_AUTHOR=bradrydzewski
|
||||
CI_COMMIT_AUTHOR_NAME=bradrydzewski
|
235
pipeline/samples/sample_4/pipeline.json
Normal file
235
pipeline/samples/sample_4/pipeline.json
Normal file
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"pipeline": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"image": "plugins/git:latest",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"PLUGIN_DEPTH": "50"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_0",
|
||||
"alias": "build",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_0",
|
||||
"alias": "build",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgZmFpbCIKZWNobyB0aGlzIHN0ZXAgc2hvdWxkIGZhaWwKCmVjaG8gKyAiZXhpdCAxIgpleGl0IDEKCg==",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_1",
|
||||
"alias": "test",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_1",
|
||||
"alias": "test",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgZXhlY3V0ZSwgZGVzcGl0ZSBmYWlsdXJlIgplY2hvIHRoaXMgc3RlcCBzaG91bGQgZXhlY3V0ZSwgZGVzcGl0ZSBmYWlsdXJlCgo=",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_failure": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "bridge"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "local"
|
||||
}
|
||||
]
|
||||
}
|
21
pipeline/samples/sample_4/pipeline.yml
Normal file
21
pipeline/samples/sample_4/pipeline.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/github.com/drone/envsubst
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: plugins/git
|
||||
depth: 50
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: golang:1.7
|
||||
commands:
|
||||
- echo this step should fail
|
||||
- exit 1
|
||||
test:
|
||||
image: golang:1.7
|
||||
commands:
|
||||
- echo this step should execute, despite failure
|
||||
when:
|
||||
status: [ failure ]
|
17
pipeline/samples/sample_5/.env
Normal file
17
pipeline/samples/sample_5/.env
Normal file
@@ -0,0 +1,17 @@
|
||||
CI_REPO=drone/envsubst
|
||||
CI_REPO_NAME=drone/envsubst
|
||||
CI_REPO_LINK=https://github.com/drone/envsubst
|
||||
CI_REPO_REMOTE=https://github.com/drone/envsubst.git
|
||||
CI_REPO_PRIVATE=false
|
||||
CI_BUILD_NUMBER=6
|
||||
CI_BUILD_CREATED=1486119586
|
||||
CI_BUILD_STARTED=1486119585
|
||||
CI_BUILD_EVENT=push
|
||||
CI_BUILD_LINK=
|
||||
CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6
|
||||
CI_COMMIT_REF=refs/heads/master
|
||||
CI_COMMIT_REFSPEC=
|
||||
CI_COMMIT_BRANCH=master
|
||||
CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior"
|
||||
CI_COMMIT_AUTHOR=bradrydzewski
|
||||
CI_COMMIT_AUTHOR_NAME=bradrydzewski
|
451
pipeline/samples/sample_5/pipeline.json
Normal file
451
pipeline/samples/sample_5/pipeline.json
Normal file
@@ -0,0 +1,451 @@
|
||||
{
|
||||
"pipeline": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"image": "plugins/git:latest",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"PLUGIN_DEPTH": "50"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_0",
|
||||
"alias": "foo",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_0",
|
||||
"alias": "foo",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgMSIKZWNobyBzdGVwIDEKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSAxIgplY2hvIGRvbmUgMQoK",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
},
|
||||
{
|
||||
"name": "pipeline_step_1",
|
||||
"alias": "bar",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgMiIKZWNobyBzdGVwIDIKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSAyIgplY2hvIGRvbmUgMgoK",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_2",
|
||||
"alias": "baz",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_2",
|
||||
"alias": "baz",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIEkgc2hvdWxkIGV4ZWN1dGUgbGFzdC4iCmVjaG8gSSBzaG91bGQgZXhlY3V0ZSBsYXN0LgoKZWNobyArICJlY2hvIGFmdGVyIHRoZSBwcmlvciB0d28gc3RlcHMgZmluaXNoIGV4ZWN1dGlvbi4iCmVjaG8gYWZ0ZXIgdGhlIHByaW9yIHR3byBzdGVwcyBmaW5pc2ggZXhlY3V0aW9uLgoK",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_3",
|
||||
"alias": "qux",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_3",
|
||||
"alias": "qux",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgMyIKZWNobyBzdGVwIDMKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSAzIgplY2hvIGRvbmUgMwoK",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
},
|
||||
{
|
||||
"name": "pipeline_step_4",
|
||||
"alias": "quux",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "pipec",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgNCIKZWNobyBzdGVwIDQKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSA0IgplY2hvIGRvbmUgNAoK",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone/envsubst",
|
||||
"DRONE_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_SYSTEM": "pipec",
|
||||
"DRONE_SYSTEM_ARCH": "linux/amd64",
|
||||
"DRONE_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"DRONE_SYSTEM_NAME": "pipec",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "bridge"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "local"
|
||||
}
|
||||
]
|
||||
}
|
55
pipeline/samples/sample_5/pipeline.yml
Normal file
55
pipeline/samples/sample_5/pipeline.yml
Normal file
@@ -0,0 +1,55 @@
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/github.com/drone/envsubst
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: plugins/git
|
||||
depth: 50
|
||||
|
||||
pipeline:
|
||||
|
||||
# these steps define a parallel execution
|
||||
# group and will fan out.
|
||||
|
||||
foo:
|
||||
image: golang:1.7
|
||||
group: build
|
||||
commands:
|
||||
- echo step 1
|
||||
- sleep 10
|
||||
- echo done 1
|
||||
bar:
|
||||
image: golang:1.7
|
||||
group: build
|
||||
commands:
|
||||
- echo step 2
|
||||
- sleep 10
|
||||
- echo done 2
|
||||
|
||||
# this step is not grouped with the previous
|
||||
# steps, resulting in a fan-in.
|
||||
|
||||
baz:
|
||||
image: golang:1.7
|
||||
commands:
|
||||
- echo I should execute last.
|
||||
- echo after the prior two steps finish execution.
|
||||
|
||||
# these steps define a parallel execution
|
||||
# group and will fan back out.
|
||||
|
||||
qux:
|
||||
image: golang:1.7
|
||||
group: test
|
||||
commands:
|
||||
- echo step 3
|
||||
- sleep 10
|
||||
- echo done 3
|
||||
quux:
|
||||
image: golang:1.7
|
||||
group: test
|
||||
commands:
|
||||
- echo step 4
|
||||
- sleep 10
|
||||
- echo done 4
|
25
pipeline/samples/sample_6/.env
Normal file
25
pipeline/samples/sample_6/.env
Normal file
@@ -0,0 +1,25 @@
|
||||
CI_REPO=drone/envsubst
|
||||
CI_REPO_NAME=drone/envsubst
|
||||
CI_REPO_LINK=https://github.com/drone/envsubst
|
||||
CI_REPO_REMOTE=https://github.com/drone/envsubst.git
|
||||
CI_REPO_PRIVATE=false
|
||||
CI_BUILD_NUMBER=6
|
||||
CI_BUILD_CREATED=1486119586
|
||||
CI_BUILD_STARTED=1486119585
|
||||
CI_BUILD_EVENT=push
|
||||
CI_BUILD_LINK=
|
||||
CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6
|
||||
CI_COMMIT_REF=refs/heads/master
|
||||
CI_COMMIT_REFSPEC=
|
||||
CI_COMMIT_BRANCH=master
|
||||
CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior"
|
||||
CI_COMMIT_AUTHOR=bradrydzewski
|
||||
CI_COMMIT_AUTHOR_NAME=bradrydzewski
|
||||
|
||||
# custom secrets
|
||||
SLACK_WEBHOOK=https://slack.com/hooks/xxxxxxxx/yyyyyyyyy
|
||||
|
||||
# registry secrets
|
||||
CI_REGISTRY_HOSTNAME=docker.io
|
||||
CI_REGISTRY_USERNAME=gordon
|
||||
CI_REGISTRY_PASSWORD=password
|
247
pipeline/samples/sample_6/pipeline.json
Normal file
247
pipeline/samples/sample_6/pipeline.json
Normal file
@@ -0,0 +1,247 @@
|
||||
{
|
||||
"pipeline": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"image": "plugins/git:latest",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"PLUGIN_DEPTH": "50"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {
|
||||
"username": "gordon",
|
||||
"password": "password"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_0",
|
||||
"alias": "build",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_0",
|
||||
"alias": "build",
|
||||
"image": "golang:1.7",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJnbyBnZXQgLXQgLi8uLi4iCmdvIGdldCAtdCAuLy4uLgoKZWNobyArICJnbyBidWlsZCIKZ28gYnVpbGQKCmVjaG8gKyAiZ28gdGVzdCAtdiIKZ28gdGVzdCAtdgoK",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {
|
||||
"username": "gordon",
|
||||
"password": "password"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_1",
|
||||
"alias": "slack",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_1",
|
||||
"alias": "slack",
|
||||
"image": "plugins/slack:latest",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "drone",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"PLUGIN_CHANNEL": "builds",
|
||||
"PLUGIN_USERNAME": "drone",
|
||||
"SLACK_WEBHOOK": "https://slack.com/hooks/xxxxxxxx/yyyyyyyyy"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": null
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {
|
||||
"username": "gordon",
|
||||
"password": "password"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "bridge"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "local"
|
||||
}
|
||||
],
|
||||
"secrets": null
|
||||
}
|
22
pipeline/samples/sample_6/pipeline.yml
Normal file
22
pipeline/samples/sample_6/pipeline.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/github.com/drone/envsubst
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: plugins/git
|
||||
depth: 50
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: golang:1.7
|
||||
commands:
|
||||
- go get -t ./...
|
||||
- go build
|
||||
- go test -v
|
||||
|
||||
slack:
|
||||
image: plugins/slack
|
||||
channel: builds
|
||||
username: drone
|
||||
secrets: [ slack_webhook ]
|
135
pipeline/samples/sample_7_redis/pipeline.json
Normal file
135
pipeline/samples/sample_7_redis/pipeline.json
Normal file
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"pipeline": [
|
||||
{
|
||||
"name": "pipeline_services",
|
||||
"alias": "services",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_services_0",
|
||||
"alias": "redis1",
|
||||
"image": "redis:3.0",
|
||||
"detach": true,
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec//0",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst"
|
||||
},
|
||||
"volumes": [
|
||||
"/Users/bradrydzewski/code/src/github.com/woodpecker-ci/woodpecker/cncd/pipeline/samples/sample_7_redis:/go/src/github.com/drone/envsubst"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"redis1"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
},
|
||||
{
|
||||
"name": "pipeline_services_1",
|
||||
"alias": "redis2",
|
||||
"image": "redis:3.0",
|
||||
"detach": true,
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec//0",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst"
|
||||
},
|
||||
"volumes": [
|
||||
"/Users/bradrydzewski/code/src/github.com/woodpecker-ci/woodpecker/cncd/pipeline/samples/sample_7_redis:/go/src/github.com/drone/envsubst"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"redis2"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_0",
|
||||
"alias": "build",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_0",
|
||||
"alias": "build",
|
||||
"image": "redis:3.0",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAp1bnNldCBEUk9ORV9ORVRSQ19VU0VSTkFNRQp1bnNldCBEUk9ORV9ORVRSQ19QQVNTV09SRAoKZWNobyArICJzbGVlcCAxIgpzbGVlcCAxCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczEgcGluZyIKcmVkaXMtY2xpIC1oIHJlZGlzMSBwaW5nCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczIgcGluZyIKcmVkaXMtY2xpIC1oIHJlZGlzMiBwaW5nCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczEgc2V0IEhFTExPIGhlbGxvIgpyZWRpcy1jbGkgLWggcmVkaXMxIHNldCBIRUxMTyBoZWxsbwoKZWNobyArICJyZWRpcy1jbGkgLWggcmVkaXMyIHNldCBIRUxMTyBob2xhIgpyZWRpcy1jbGkgLWggcmVkaXMyIHNldCBIRUxMTyBob2xhCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczEgZ2V0IEhFTExPIgpyZWRpcy1jbGkgLWggcmVkaXMxIGdldCBIRUxMTwoKZWNobyArICJyZWRpcy1jbGkgLWggcmVkaXMyIGdldCBIRUxMTyIKcmVkaXMtY2xpIC1oIHJlZGlzMiBnZXQgSEVMTE8KCg==",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec//0",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"/Users/bradrydzewski/code/src/github.com/woodpecker-ci/woodpecker/cncd/pipeline/samples/sample_7_redis:/go/src/github.com/drone/envsubst"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"build"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "bridge"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "local"
|
||||
}
|
||||
],
|
||||
"secrets": null
|
||||
}
|
21
pipeline/samples/sample_7_redis/pipeline.yml
Normal file
21
pipeline/samples/sample_7_redis/pipeline.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/github.com/drone/envsubst
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: redis:3.0
|
||||
commands:
|
||||
- sleep 1 # redis needs a second to init
|
||||
- redis-cli -h redis1 ping
|
||||
- redis-cli -h redis2 ping
|
||||
- redis-cli -h redis1 set HELLO hello
|
||||
- redis-cli -h redis2 set HELLO hola
|
||||
- redis-cli -h redis1 get HELLO
|
||||
- redis-cli -h redis2 get HELLO
|
||||
|
||||
services:
|
||||
redis1:
|
||||
image: redis:3.0
|
||||
redis2:
|
||||
image: redis:3.0
|
18
pipeline/samples/sample_8_network_mode/README.md
Normal file
18
pipeline/samples/sample_8_network_mode/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
Compile the yaml to the intermediate representation:
|
||||
|
||||
```
|
||||
pipec compile
|
||||
```
|
||||
|
||||
Execute the intermediate representation:
|
||||
|
||||
```
|
||||
pipec exec
|
||||
```
|
||||
|
||||
This example shows how to use the network_mode option to use the network defined
|
||||
by other container. This is useful for example to allow the CI to connect with servers
|
||||
behind a VPN.
|
||||
|
||||
Before to start you need to create a container that connects to the VPN (using one of
|
||||
the openvpn client images like https://github.com/ekristen/docker-openvpn-client).
|
105
pipeline/samples/sample_8_network_mode/pipeline.json
Normal file
105
pipeline/samples/sample_8_network_mode/pipeline.json
Normal file
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"pipeline": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_clone_0",
|
||||
"alias": "git",
|
||||
"image": "plugins/git:latest",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec//0",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"PLUGIN_DEPTH": "50"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"git"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_0",
|
||||
"alias": "build",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_0",
|
||||
"alias": "build",
|
||||
"image": "tutum/curl:latest",
|
||||
"working_dir": "/go/src/github.com/drone/envsubst",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAp1bnNldCBEUk9ORV9ORVRSQ19VU0VSTkFNRQp1bnNldCBEUk9ORV9ORVRSQ19QQVNTV09SRAoKZWNobyArICJjdXJsIC1zIC1mIC1MIGh0dHA6Ly9IT1NUX09SX0lQLyIKY3VybCAtcyAtZiAtTCBodHRwOi8vSE9TVF9PUl9JUC8KCg==",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec//0",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/go/src/github.com/drone/envsubst",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/go"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"build"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {},
|
||||
"network_mode": "container:vpn"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "bridge"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "local"
|
||||
}
|
||||
],
|
||||
"secrets": null
|
||||
}
|
17
pipeline/samples/sample_8_network_mode/pipeline.yml
Normal file
17
pipeline/samples/sample_8_network_mode/pipeline.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/github.com/drone/envsubst
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: plugins/git
|
||||
depth: 50
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: tutum/curl
|
||||
# A container named "vpn" should exist on the same docker daemon
|
||||
network_mode: "container:vpn"
|
||||
# Replace HOST_OR_IP with the IP or hostname of a server behind the VPN
|
||||
commands:
|
||||
- curl -s -f -L http://HOST_OR_IP/
|
17
pipeline/samples/sample_8_postgres/pipeline.yml
Normal file
17
pipeline/samples/sample_8_postgres/pipeline.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
pipeline:
|
||||
ping:
|
||||
image: postgres
|
||||
commands:
|
||||
- sleep 10
|
||||
- psql -U postgres -d test -h database -p 5432 -c "CREATE TABLE person( NAME TEXT );"
|
||||
- psql -U postgres -d test -h database -p 5432 -c "INSERT INTO person VALUES('john smith');"
|
||||
- psql -U postgres -d test -h database -p 5432 -c "INSERT INTO person VALUES('jane doe');"
|
||||
- psql -U postgres -d test -h database -p 5432 -c "SELECT * FROM person;"
|
||||
|
||||
services:
|
||||
database:
|
||||
image: postgres
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_DB=test
|
||||
|
21
pipeline/samples/sample_9_cache/.env
Normal file
21
pipeline/samples/sample_9_cache/.env
Normal file
@@ -0,0 +1,21 @@
|
||||
CI_REPO=drone/envsubst
|
||||
CI_REPO_NAME=drone/envsubst
|
||||
CI_REPO_LINK=https://github.com/drone/envsubst
|
||||
CI_REPO_REMOTE=https://github.com/drone/envsubst.git
|
||||
CI_REPO_PRIVATE=false
|
||||
CI_BUILD_NUMBER=6
|
||||
CI_BUILD_CREATED=1486119586
|
||||
CI_BUILD_STARTED=1486119585
|
||||
CI_BUILD_EVENT=push
|
||||
CI_BUILD_LINK=
|
||||
CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6
|
||||
CI_COMMIT_REF=refs/heads/master
|
||||
CI_COMMIT_REFSPEC=
|
||||
CI_COMMIT_BRANCH=master
|
||||
CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior"
|
||||
CI_COMMIT_AUTHOR=bradrydzewski
|
||||
CI_COMMIT_AUTHOR_NAME=bradrydzewski
|
||||
|
||||
CI_VOLUME_CACHE=true
|
||||
CI_VOLUME_CACHE_BASE=/cache/drone
|
||||
|
324
pipeline/samples/sample_9_cache/pipeline.json
Normal file
324
pipeline/samples/sample_9_cache/pipeline.json
Normal file
@@ -0,0 +1,324 @@
|
||||
{
|
||||
"pipeline": [
|
||||
{
|
||||
"name": "pipeline_clone",
|
||||
"alias": "clone",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_clone",
|
||||
"alias": "clone",
|
||||
"image": "plugins/git:latest",
|
||||
"working_dir": "/pipeline/src",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/pipeline/src",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/pipeline/src",
|
||||
"PLUGIN_DEPTH": "0"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/pipeline"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"clone"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_restore_cache",
|
||||
"alias": "restore_cache",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_restore_cache",
|
||||
"alias": "rebuild_cache",
|
||||
"image": "plugins/volume-cache:1.0.0",
|
||||
"working_dir": "/pipeline/src",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/pipeline/src",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/pipeline/src",
|
||||
"PLUGIN_FALLBACK_TO": "master.tar",
|
||||
"PLUGIN_FILE": "master.tar",
|
||||
"PLUGIN_MOUNT": "node_modules",
|
||||
"PLUGIN_PATH": "/cache",
|
||||
"PLUGIN_RESTORE": "true"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/pipeline",
|
||||
"/cache/drone/drone/envsubst:/cache"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"rebuild_cache"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_stage_0",
|
||||
"alias": "build",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_step_0",
|
||||
"alias": "build",
|
||||
"image": "node:latest",
|
||||
"working_dir": "/pipeline/src",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAp1bnNldCBEUk9ORV9ORVRSQ19VU0VSTkFNRQp1bnNldCBEUk9ORV9ORVRSQ19QQVNTV09SRAoKZWNobyArICJucG0gaW5zdGFsbCIKbnBtIGluc3RhbGwKCmVjaG8gKyAibnBtIHRlc3QiCm5wbSB0ZXN0Cgo=",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/pipeline/src",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/pipeline/src",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/pipeline"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"build"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pipeline_rebuild_cache",
|
||||
"alias": "rebuild_cache",
|
||||
"steps": [
|
||||
{
|
||||
"name": "pipeline_rebuild_cache",
|
||||
"alias": "rebuild_cache",
|
||||
"image": "plugins/volume-cache:1.0.0",
|
||||
"working_dir": "/pipeline/src",
|
||||
"environment": {
|
||||
"CI": "drone",
|
||||
"CI_BUILD_CREATED": "1486119586",
|
||||
"CI_BUILD_EVENT": "push",
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
"CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"CI_REPO": "drone/envsubst",
|
||||
"CI_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"CI_REPO_NAME": "drone/envsubst",
|
||||
"CI_REPO_REMOTE": "https://github.com/drone/envsubst.git",
|
||||
"CI_SYSTEM": "pipec",
|
||||
"CI_SYSTEM_ARCH": "linux/amd64",
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/pipeline/src",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/pipeline/src",
|
||||
"PLUGIN_FILE": "master.tar",
|
||||
"PLUGIN_FLUSH": "true",
|
||||
"PLUGIN_MOUNT": "node_modules",
|
||||
"PLUGIN_PATH": "/cache",
|
||||
"PLUGIN_REBUILD": "true"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/pipeline",
|
||||
"/cache/drone/drone/envsubst:/cache"
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"rebuild_cache"
|
||||
]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
"auth_config": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "bridge"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"driver": "local"
|
||||
}
|
||||
],
|
||||
"secrets": null
|
||||
}
|
10
pipeline/samples/sample_9_cache/pipeline.yml
Normal file
10
pipeline/samples/sample_9_cache/pipeline.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
cache:
|
||||
- node_modules
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: node
|
||||
commands:
|
||||
- npm install
|
||||
- npm test
|
||||
|
Reference in New Issue
Block a user