Skip to content

Commit 491a07a

Browse files
committed
add infiscal for tokens management
1 parent 854b1ca commit 491a07a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

live-demo/deploy/.woodpecker.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ clone:
66
depth: 5
77

88
steps:
9+
init-secrets:
10+
image: infisical/cli
11+
commands:
12+
- infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > "${SCRIPT_DIR}/deploy.vault.env"
13+
secrets:
14+
- VAULT_TOKEN
915

1016
release:
1117
image: node:20
@@ -14,15 +20,12 @@ steps:
1420
volumes:
1521
- /var/run/docker.sock:/var/run/docker.sock
1622
commands:
23+
- export $(cat deploy.vault.env | xargs)
1724
- cd adminforth
1825
- npm clean-install
1926
- /bin/bash ../live-demo/deploy/buildRelease.sh
2027
- npm audit signatures
2128
- npx semantic-release
22-
secrets:
23-
- GITHUB_TOKEN
24-
- NPM_TOKEN
25-
- SLACK_WEBHOOK
2629

2730
slack-on-failure:
2831
# use curl because the plugin can't interpolate template
@@ -32,10 +35,9 @@ steps:
3235
- event: push
3336
image: curlimages/curl
3437
commands:
38+
- export $(cat deploy.vault.env | xargs)
3539
- cd live-demo/deploy && /bin/sh buildSlackNotify.sh
3640

37-
secrets:
38-
- DEVELOPERS_SLACK_WEBHOOK
3941

4042
build-live-demo:
4143
when:

0 commit comments

Comments
 (0)