Skip to content

Commit f7e8450

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

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"
@@ -132,18 +128,6 @@ jobs:
132128
includes: ${{ steps.set.outputs.includes }}
133129
sign: ${{ steps.set.outputs.sign }}
134130
steps:
135-
-
136-
name: Environment variables
137-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
138-
env:
139-
INPUT_ENVS: ${{ inputs.envs }}
140-
with:
141-
script: |
142-
for (const env of core.getMultilineInput('envs')) {
143-
core.info(env);
144-
const [key, value] = env.split('=', 2);
145-
core.exportVariable(key, value);
146-
}
147131
-
148132
name: Install @docker/actions-toolkit
149133
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -312,18 +296,6 @@ jobs:
312296
result_18: ${{ steps.result.outputs.result_18 }}
313297
result_19: ${{ steps.result.outputs.result_19 }}
314298
steps:
315-
-
316-
name: Environment variables
317-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
318-
env:
319-
INPUT_ENVS: ${{ inputs.envs }}
320-
with:
321-
script: |
322-
for (const env of core.getMultilineInput('envs')) {
323-
core.info(env);
324-
const [key, value] = env.split('=', 2);
325-
core.exportVariable(key, value);
326-
}
327299
-
328300
name: Install @docker/actions-toolkit
329301
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)