mirror of
https://gitee.com/actions-mirror/docker-setup-buildx-action.git
synced 2024-11-27 15:20:43 +08:00
86f43c11f1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
29 lines
472 B
Markdown
29 lines
472 B
Markdown
# Install by default
|
|
|
|
If you want set up the `docker build` command as an alias to
|
|
`docker buildx build`:
|
|
|
|
```yaml
|
|
name: ci
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
buildx:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v3
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
with:
|
|
install: true
|
|
-
|
|
name: Build
|
|
run: |
|
|
docker build . # will run buildx
|
|
```
|