Skip to content

Commit

Permalink
Merge pull request #542 from crazy-max/update-readme
Browse files Browse the repository at this point in the history
Note about new inputs
  • Loading branch information
CrazyMax authored and GitHub committed Jan 18, 2022
2 parents 1814d3d + 5645ea7 commit 604f033
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
push:
branches:
- master
- 'master'
pull_request:
branches:
- master
- 'master'

jobs:
minimal:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: '0 10 * * *'
push:
branches:
- master
- 'master'
tags:
- v*

Expand Down
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'
jobs:
docker:
Expand Down Expand Up @@ -129,7 +129,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'
jobs:
docker:
Expand Down Expand Up @@ -199,7 +199,7 @@ Following inputs can be used as `step.with` keys
| `build-args` | List | List of build-time variables |
| `cache-from` | List | List of [external cache sources](https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#cache-from) (e.g., `type=local,src=path/to/dir`) |
| `cache-to` | List | List of [cache export destinations](https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#cache-to) (e.g., `type=local,dest=path/to/dir`) |
| `cgroup-parent` | String | Optional [parent cgroup](https://docs.docker.com/engine/reference/commandline/build/#use-a-custom-parent-cgroup---cgroup-parent) for the container used in the build |
| `cgroup-parent`¹ | String | Optional [parent cgroup](https://docs.docker.com/engine/reference/commandline/build/#use-a-custom-parent-cgroup---cgroup-parent) for the container used in the build |
| `context` | String | Build's context is the set of files located in the specified [`PATH` or `URL`](https://docs.docker.com/engine/reference/commandline/build/) (default [Git context](#git-context)) |
| `file` | String | Path to the Dockerfile. (default `{context}/Dockerfile`) |
| `labels` | List | List of metadata for an image |
Expand All @@ -212,11 +212,21 @@ Following inputs can be used as `step.with` keys
| `push` | Bool | [Push](https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#push) is a shorthand for `--output=type=registry` (default `false`) |
| `secrets` | List | List of secrets to expose to the build (e.g., `key=string`, `GIT_AUTH_TOKEN=mytoken`) |
| `secret-files` | List | List of secret files to expose to the build (e.g., `key=filename`, `MY_SECRET=./secret.txt`) |
| `shm-size` | String | Size of [`/dev/shm`](https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#-size-of-devshm---shm-size) (e.g., `2g`) |
| `shm-size`¹ | String | Size of [`/dev/shm`](https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#-size-of-devshm---shm-size) (e.g., `2g`) |
| `ssh` | List | List of SSH agent socket or keys to expose to the build |
| `tags` | List/CSV | List of tags |
| `target` | String | Sets the target stage to build |
| `ulimit` | List | [Ulimit](https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#-set-ulimits---ulimit) options (e.g., `nofile=1024:1024`) |
| `ulimit`¹ | List | [Ulimit](https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#-set-ulimits---ulimit) options (e.g., `nofile=1024:1024`) |

> ¹ `cgroup-parent`, `shm-size` and `ulimit` are only available using `moby/buildkit:master`
> as builder image atm:
> ```yaml
> - name: Set up Docker Buildx
> uses: docker/setup-buildx-action@v1
> with:
> driver-opts: |
> image=moby/buildkit:master
> ```

### outputs

Expand Down
8 changes: 4 additions & 4 deletions docs/advanced/cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

jobs:
docker:
Expand Down Expand Up @@ -60,7 +60,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'
jobs:
docker:
Expand Down Expand Up @@ -110,7 +110,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'
jobs:
docker:
Expand Down Expand Up @@ -154,7 +154,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'
jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/copy-between-registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/dockerhub-desc.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/export-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/isolated-builders.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/local-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/multi-platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/push-multi-registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/share-image-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/tags-labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
- 'v*.*.*'
pull_request:
branches:
- 'master'
- 'main'

jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/test-before-push.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'

env:
TEST_TAG: user/myapp:test
Expand Down

0 comments on commit 604f033

Please sign in to comment.