Demo of buildx bake
@ Docker Community All-Hands #2
Slides available on GitHub Pages: https://crazy-max.github.io/docker-buildx-bake-demo/
git clone https://github.com/crazy-max/docker-buildx-bake-demo.git bake-demo
cd bake-demo
# generate slides and will be available in ./www folder
docker buildx bake slides
docker run --rm --init -v $(pwd)/slides:/home/marp/app -p 8080:8080 -p 37717:37717 marpteam/marp-cli -w -s -I .
# open your browser at http://localhost:8080
GitHub Action workflow available in .github/workflows/slides.yml
Sources available in ./demo folder.
git clone https://github.com/crazy-max/docker-buildx-bake-demo.git bake-demo
cd bake-demo
# build docker image and output to docker with bake-demo:local tag (default)
docker buildx bake image-local
# build multi-platform image
docker buildx bake image-all
# create the artifact matching your current platform in ./dist
docker buildx bake artifact
# create artifacts for many platforms in ./dist
docker buildx bake artifact-all
GitHub Action workflow available in .github/workflows/build.yml
- Using docker/bake-action to:
- Create artifacts for GitHub Releases
- Publish multi-platform Docker image to Docker Hub and GHCR
MIT. See LICENSE
for more details.