Skip to content

Commit 5e6edd2

Browse files
committed
bake: export env vars
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 15bd031 commit 5e6edd2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/bake.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,18 @@ jobs:
143143
id-token: write # needed for signing the images with GitHub OIDC Token
144144
packages: write # needed to push images to GitHub Container Registry
145145
steps:
146+
-
147+
name: Environment variables
148+
uses: actions/github-script@v8
149+
env:
150+
INPUT_ENVS: ${{ inputs.envs }}
151+
with:
152+
script: |
153+
for (const env of core.getMultilineInput('envs')) {
154+
core.info(env);
155+
const [key, value] = env.split('=', 2);
156+
core.exportVariable(key, value);
157+
}
146158
-
147159
name: Install @docker/actions-toolkit
148160
uses: actions/github-script@v8

0 commit comments

Comments
 (0)