mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-05 23:46:34 +00:00
Drop deprecated built-in environment variables (#2048)
Drop: - `CI_BUILD_*` - `CI_PREV_BUILD_*` - `CI_JOB_*` - `*_LINK` - `CI_SYSTEM_ARCH` - `CI_REPO_REMOTE`
This commit is contained in:
@@ -95,7 +95,7 @@ func Pod(namespace string, step *types.Step, labels, annotations map[string]stri
|
||||
labels["step"] = podName
|
||||
|
||||
var nodeSelector map[string]string
|
||||
platform, exist := step.Environment["CI_SYSTEM_ARCH"]
|
||||
platform, exist := step.Environment["CI_SYSTEM_PLATFORM"]
|
||||
if exist && platform != "" {
|
||||
arch := strings.Split(platform, "/")[1]
|
||||
nodeSelector = map[string]string{v1.LabelArchStable: arch}
|
||||
|
Reference in New Issue
Block a user