File tree Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,9 @@ if (import.meta.url === `file://${process.argv[1]}`) {
97
97
const port = 3500 ;
98
98
99
99
// needed to compile SPA. Call it here or from a build script e.g. in Docker build time to reduce downtime
100
- await admin . bundleNow ( { hotReload : process . env . NODE_ENV === 'development' } ) ;
101
- console . log ( 'Bundling AdminForth done. For faster serving consider calling bundleNow() from a build script.' ) ;
100
+ admin . bundleNow ( { hotReload : process . env . NODE_ENV === 'development' } ) . then ( ( ) => {
101
+ console . log ( 'Bundling AdminForth done. For faster serving consider calling bundleNow() from a build script.' ) ;
102
+ } )
102
103
103
104
104
105
// serve after you added all api
Original file line number Diff line number Diff line change 15
15
from_secret : VAULT_TOKEN
16
16
commands :
17
17
- infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > /woodpecker/deploy.vault.env
18
- secrets :
19
- - VAULT_TOKEN
20
18
21
19
release :
22
20
image : node:20
@@ -49,13 +47,22 @@ steps:
49
47
- /var/run/docker.sock:/var/run/docker.sock
50
48
commands :
51
49
- cd live-demo/deploy && /bin/sh build.sh
52
- secrets :
53
- - VAULT_MAIN_CA_PEM_KEY
54
- - VAULT_MAIN_KEY_PEM_KEY
55
- - VAULT_MAIN_CERT_PEM_KEY
56
- - VAULT_AF_SECRET
57
- - VAULT_HARBOR_KEY
58
- - VAULT_OPENAI_API_KEY
59
- - VAULT_AWS_ACCESS_KEY_ID
60
- - VAULT_AWS_SECRET_ACCESS_KEY
61
- - VAULT_ADMIN_PASSWORD
50
+ environment :
51
+ VAULT_MAIN_CA_PEM_KEY :
52
+ from_secret : VAULT_MAIN_CA_PEM_KEY
53
+ VAULT_MAIN_KEY_PEM_KEY :
54
+ from_secret : VAULT_MAIN_KEY_PEM_KEY
55
+ VAULT_MAIN_CERT_PEM_KEY :
56
+ from_secret : VAULT_MAIN_CERT_PEM_KEY
57
+ VAULT_AF_SECRET :
58
+ from_secret : VAULT_AF_SECRET
59
+ VAULT_HARBOR_KEY :
60
+ from_secret : VAULT_HARBOR_KEY
61
+ VAULT_OPENAI_API_KEY :
62
+ from_secret : VAULT_OPENAI_API_KEY
63
+ VAULT_AWS_ACCESS_KEY_ID :
64
+ from_secret : VAULT_AWS_ACCESS_KEY_ID
65
+ VAULT_AWS_SECRET_ACCESS_KEY :
66
+ from_secret : VAULT_AWS_SECRET_ACCESS_KEY
67
+ VAULT_ADMIN_PASSWORD :
68
+ from_secret : VAULT_ADMIN_PASSWORD
You can’t perform that action at this time.
0 commit comments