Skip to content

Commit 8fb7961

Browse files
committed
fix(wooddpecker): secsets are deprecated
1 parent 6271849 commit 8fb7961

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

.woodpecker/build-linux.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@ steps:
88
commands:
99
- sed -i "s#canary#$CI_COMMIT_TAG#g" version/version.go
1010
- VERSION=$CI_COMMIT_TAG make build
11-
secrets:
12-
- dev_registry
13-
- drycc_registry
14-
- container_username
15-
- container_password
11+
environment:
12+
CODENAME:
13+
from_secret: codename
14+
DEV_REGISTRY:
15+
from_secret: dev_registry
16+
DRYCC_REGISTRY:
17+
from_secret: drycc_registry
18+
CONTAINER_USERNAME:
19+
from_secret: container_username
20+
CONTAINER_PASSWORD:
21+
from_secret: container_password
1622
when:
1723
event:
1824
- push
@@ -34,8 +40,9 @@ steps:
3440
-v $(pwd):$(pwd)
3541
-w $(pwd)
3642
docker.io/plugins/github-release
37-
secrets:
38-
- github_token
43+
environment:
44+
GITHUB_TOKEN:
45+
from_secret: github_token
3946
when:
4047
event:
4148
- tag

.woodpecker/test-linux.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ steps:
1212
image: bash
1313
commands:
1414
- make test
15-
secrets:
16-
- dev_registry
17-
- codecov_token
15+
environment:
16+
DEV_REGISTRY:
17+
from_secret: dev_registry
18+
CODECOV_TOKEN:
19+
from_secret: codecov_token
1820
when:
1921
event:
2022
- push

0 commit comments

Comments
 (0)