Replace DRONE_ with CI_ variables in pipeline steps (#427)

Dropped support for `DRONE_*` environment variables in pipeline steps. Pipeline meta-data can be accessed with `CI_*` variables.
  - `CI_*` prefix replaces `DRONE_*`
  - `CI` value is now `woodpecker`
  - `DRONE=true` has been removed
This commit is contained in:
Anbraten
2021-11-25 20:43:31 +01:00
committed by GitHub
parent ff8ad5bb83
commit 063d0bb32a
37 changed files with 437 additions and 1105 deletions

View File

@@ -16,11 +16,9 @@
"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"
"CI_ARCH": "linux/amd64",
"CI_BUILD_LINK": "https://github.com/cncd/pipec//0",
"CI_REPO_SCM": "git"
},
"volumes": [
"/Users/bradrydzewski/code/src/github.com/woodpecker-ci/woodpecker/cncd/pipeline/samples/sample_7_redis:/go/src/github.com/drone/envsubst"
@@ -28,9 +26,7 @@
"networks": [
{
"name": "pipeline_default",
"aliases": [
"redis1"
]
"aliases": ["redis1"]
}
],
"on_success": true,
@@ -48,11 +44,9 @@
"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"
"CI_ARCH": "linux/amd64",
"CI_BUILD_LINK": "https://github.com/cncd/pipec//0",
"CI_REPO_SCM": "git"
},
"volumes": [
"/Users/bradrydzewski/code/src/github.com/woodpecker-ci/woodpecker/cncd/pipeline/samples/sample_7_redis:/go/src/github.com/drone/envsubst"
@@ -60,9 +54,7 @@
"networks": [
{
"name": "pipeline_default",
"aliases": [
"redis2"
]
"aliases": ["redis2"]
}
],
"on_success": true,
@@ -88,29 +80,21 @@
"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",
"CI_ARCH": "linux/amd64",
"CI_BUILD_LINK": "https://github.com/cncd/pipec//0",
"CI_REPO_SCM": "git",
"HOME": "/root",
"SHELL": "/bin/sh"
},
"entrypoint": [
"/bin/sh",
"-c"
],
"command": [
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
],
"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"
]
"aliases": ["build"]
}
],
"on_success": true,
@@ -132,4 +116,4 @@
}
],
"secrets": null
}
}