1
0
Fork 0
mirror of https://github.com/docker/setup-buildx-action.git synced 2024-11-22 08:54:57 +00:00

Rename endpoint

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2020-09-08 15:52:09 +02:00
parent 48948ec5e2
commit 583e11daec
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
6 changed files with 12 additions and 12 deletions

View file

@ -143,7 +143,7 @@ jobs:
docker buildx inspect | grep Driver | grep docker docker buildx inspect | grep Driver | grep docker
docker buildx inspect | grep Status | grep running docker buildx inspect | grep Status | grep running
context: endpoint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
services: services:
dind: dind:
@ -174,7 +174,7 @@ jobs:
name: Set up Docker Buildx name: Set up Docker Buildx
uses: ./ uses: ./
with: with:
context: mycontext endpoint: mycontext
with-qemu: with-qemu:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -134,7 +134,7 @@ Following inputs can be used as `step.with` keys
| `buildkitd-flags` | String | [Flags for buildkitd](https://github.com/moby/buildkit/blob/master/docs/buildkitd.toml.md) daemon (since [buildx v0.3.0](https://github.com/docker/buildx/releases/tag/v0.3.0)) | | `buildkitd-flags` | String | [Flags for buildkitd](https://github.com/moby/buildkit/blob/master/docs/buildkitd.toml.md) daemon (since [buildx v0.3.0](https://github.com/docker/buildx/releases/tag/v0.3.0)) |
| `install` | Bool | Sets up `docker build` command as an alias to `docker buildx` (default `false`) | | `install` | Bool | Sets up `docker build` command as an alias to `docker buildx` (default `false`) |
| `use` | Bool | Switch to this builder instance (default `true`) | | `use` | Bool | Switch to this builder instance (default `true`) |
| `context` | String | [Name of a context](https://github.com/docker/buildx#buildx-create-options-contextendpoint) from `docker context ls` or an endpoint as the address for docker socket (eg. `DOCKER_HOST` value) | | `endpoint` | String | [Address for docker socket](https://github.com/docker/buildx#buildx-create-options-contextendpoint) or context from `docker context ls` (eg. `DOCKER_HOST` value) |
> `CSV` type must be a newline-delimited string > `CSV` type must be a newline-delimited string
> ```yaml > ```yaml

View file

@ -29,8 +29,8 @@ inputs:
description: 'Switch to this builder instance' description: 'Switch to this builder instance'
default: 'true' default: 'true'
required: false required: false
context: endpoint:
description: 'Name of a context from docker context ls or an endpoint as the address for docker socket (eg. DOCKER_HOST value)' description: 'Address for docker socket or context from `docker context ls (eg. DOCKER_HOST value)'
required: false required: false
outputs: outputs:

6
dist/index.js generated vendored
View file

@ -534,8 +534,8 @@ function run() {
if (inputs.use) { if (inputs.use) {
createArgs.push('--use'); createArgs.push('--use');
} }
if (inputs.context) { if (inputs.endpoint) {
createArgs.push(inputs.context); createArgs.push(inputs.endpoint);
} }
yield exec.exec('docker', createArgs); yield exec.exec('docker', createArgs);
core.info('🏃 Booting builder...'); core.info('🏃 Booting builder...');
@ -6581,7 +6581,7 @@ function getInputs() {
'--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host', '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host',
install: /true/i.test(core.getInput('install')), install: /true/i.test(core.getInput('install')),
use: /true/i.test(core.getInput('use')), use: /true/i.test(core.getInput('use')),
context: core.getInput('context') endpoint: core.getInput('endpoint')
}; };
}); });
} }

View file

@ -11,7 +11,7 @@ export interface Inputs {
buildkitdFlags: string; buildkitdFlags: string;
install: boolean; install: boolean;
use: boolean; use: boolean;
context: string; endpoint: string;
} }
export async function getInputs(): Promise<Inputs> { export async function getInputs(): Promise<Inputs> {
@ -24,7 +24,7 @@ export async function getInputs(): Promise<Inputs> {
'--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host', '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host',
install: /true/i.test(core.getInput('install')), install: /true/i.test(core.getInput('install')),
use: /true/i.test(core.getInput('use')), use: /true/i.test(core.getInput('use')),
context: core.getInput('context') endpoint: core.getInput('endpoint')
}; };
} }

View file

@ -42,8 +42,8 @@ async function run(): Promise<void> {
if (inputs.use) { if (inputs.use) {
createArgs.push('--use'); createArgs.push('--use');
} }
if (inputs.context) { if (inputs.endpoint) {
createArgs.push(inputs.context); createArgs.push(inputs.endpoint);
} }
await exec.exec('docker', createArgs); await exec.exec('docker', createArgs);