Skip to content

Commit 6e46b8d

Browse files
committed
remove envs input
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 6ef6598 commit 6e46b8d

File tree

3 files changed

+1
-47
lines changed

3 files changed

+1
-47
lines changed

.github/workflows/bake.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ on:
2323
description: "Upload build output GitHub artifact (for local output)"
2424
required: false
2525
default: false
26-
envs:
27-
type: string
28-
description: "Environment variables to inject in the reusable workflow as list of key-value pair. This is similar to the GitHub Actions env context that is currently not available when calling a reusable workflow"
29-
required: false
3026
context:
3127
type: string
3228
description: "Context to build from in the Git working tree"
@@ -140,18 +136,6 @@ jobs:
140136
includes: ${{ steps.set.outputs.includes }}
141137
sign: ${{ steps.set.outputs.sign }}
142138
steps:
143-
-
144-
name: Environment variables
145-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
146-
env:
147-
INPUT_ENVS: ${{ inputs.envs }}
148-
with:
149-
script: |
150-
for (const env of core.getMultilineInput('envs')) {
151-
core.info(env);
152-
const [key, value] = env.split('=', 2);
153-
core.exportVariable(key, value);
154-
}
155139
-
156140
name: Install @docker/actions-toolkit
157141
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -320,18 +304,6 @@ jobs:
320304
result_18: ${{ steps.result.outputs.result_18 }}
321305
result_19: ${{ steps.result.outputs.result_19 }}
322306
steps:
323-
-
324-
name: Environment variables
325-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
326-
env:
327-
INPUT_ENVS: ${{ inputs.envs }}
328-
with:
329-
script: |
330-
for (const env of core.getMultilineInput('envs')) {
331-
core.info(env);
332-
const [key, value] = env.split('=', 2);
333-
core.exportVariable(key, value);
334-
}
335307
-
336308
name: Install @docker/actions-toolkit
337309
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0

.github/workflows/build.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,13 @@ on:
2323
description: "Upload build output GitHub artifact (for local output)"
2424
required: false
2525
default: false
26-
envs:
27-
type: string
28-
description: "Environment variables to inject in the reusable workflow as list of key-value pair. This is similar to the GitHub Actions env context that is currently not available when calling a reusable workflow"
29-
required: false
3026
annotations:
3127
type: string
3228
description: "List of annotations to set to the image (for image output)"
3329
required: false
3430
build-args:
3531
type: string
36-
description: "List of build-time variables. If you want to set a build-arg through an environment variable, use the envs input"
32+
description: "List of build-time variables"
3733
required: false
3834
context:
3935
type: string
@@ -270,18 +266,6 @@ jobs:
270266
result_18: ${{ steps.result.outputs.result_18 }}
271267
result_19: ${{ steps.result.outputs.result_19 }}
272268
steps:
273-
-
274-
name: Environment variables
275-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
276-
env:
277-
INPUT_ENVS: ${{ inputs.envs }}
278-
with:
279-
script: |
280-
for (const env of core.getMultilineInput('envs')) {
281-
core.info(env);
282-
const [key, value] = env.split('=', 2);
283-
core.exportVariable(key, value);
284-
}
285269
-
286270
name: Install @docker/actions-toolkit
287271
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ on:
225225
| `setup-qemu` | Bool | `false` | Runs the `setup-qemu-action` step to install QEMU static binaries |
226226
| `artifact-name` | String | `docker-github-builder-assets` | Name of the uploaded GitHub artifact (for `local` output) |
227227
| `artifact-upload` | Bool | `false` | Upload build output GitHub artifact (for `local` output) |
228-
| `envs` | List | | Environment variables to inject in the reusable workflow as list of key-value pair. This is similar to the [GitHub Actions `env` context](https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#env-context) that is currently not available when calling a reusable workflow |
229228
| `annotations` | List | | List of annotations to set to the image (for `image` output) |
230229
| `build-args` | List | `auto` | List of [build-time variables](https://docs.docker.com/engine/reference/commandline/buildx_build/#build-arg). If you want to set a build-arg through an environment variable, use the `envs` input |
231230
| `context` | String | `.` | Context to build from in the Git working tree |
@@ -330,7 +329,6 @@ on:
330329
| `setup-qemu` | Bool | `false` | Runs the `setup-qemu-action` step to install QEMU static binaries |
331330
| `artifact-name` | String | `docker-github-builder-assets` | Name of the uploaded GitHub artifact (for `local` output) |
332331
| `artifact-upload` | Bool | `false` | Upload build output GitHub artifact (for `local` output) |
333-
| `envs` | List | | Environment variables to inject in the reusable workflow as list of key-value pair. This is similar to the [GitHub Actions `env` context](https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#env-context) that is currently not available when calling a reusable workflow |
334332
| `context` | String | `.` | Context to build from in the Git working tree |
335333
| `files` | List | `{context}/docker-bake.hcl` | List of bake definition files |
336334
| `output` | String | | Build output destination (one of [`image`](https://docs.docker.com/build/exporters/image-registry/) or [`local`](https://docs.docker.com/build/exporters/local-tar/)). |

0 commit comments

Comments
 (0)