fix: Build secrets should be visible in runtime
This commit is contained in:
parent
aec1d184c8
commit
40939d0b7f
1 changed files with 1 additions and 3 deletions
|
|
@ -205,9 +205,7 @@ export default async function (job) {
|
|||
const envs = [];
|
||||
if (secrets.length > 0) {
|
||||
secrets.forEach((secret) => {
|
||||
if (!secret.isBuildSecret) {
|
||||
envs.push(`${secret.name}=${secret.value}`);
|
||||
}
|
||||
envs.push(`${secret.name}=${secret.value}`);
|
||||
});
|
||||
}
|
||||
await fs.writeFile(`${workdir}/.env`, envs.join('\n'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue