mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 06:48:57 +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:
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
|
||||
Reference in New Issue
Block a user