https://github.com/crazy-max/lorrainejug-buildx-bake
Presentation of buildx bake @ Lorraine JUG
https://github.com/crazy-max/lorrainejug-buildx-bake
Last synced: 5 months ago
JSON representation
Presentation of buildx bake @ Lorraine JUG
- Host: GitHub
- URL: https://github.com/crazy-max/lorrainejug-buildx-bake
- Owner: crazy-max
- License: mit
- Created: 2021-11-17T08:12:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-18T16:01:07.000Z (over 4 years ago)
- Last Synced: 2025-08-30T17:43:11.729Z (11 months ago)
- Language: HCL
- Homepage: https://crazymax.dev/lorrainejug-buildx-bake/
- Size: 206 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# `buildx bake adoption --push`
Presentation of `buildx bake` @ [Lorraine JUG](https://lorrainejug.github.io/annonce/2021/11/18/docker-buildx.html)
___
* [Slides](#slides)
* [Render](#render)
* [Run and auto-reload](#run-and-auto-reload)
* [GitHub Actions with `bake` and GitHub Pages](#github-actions-with-bake-and-github-pages)
* [Demo app](#demo-app)
* [Sources](#sources)
* [Build](#build)
* [GitHub Actions](#github-actions)
* [License](#license)
## Slides
Slides available on GitHub Pages: https://crazy-max.github.io/lorrainejug-buildx-bake/
### Render
```shell
git clone https://github.com/crazy-max/lorrainejug-buildx-bake.git
cd lorrainejug-buildx-bake
# generate slides to ./www folder
docker buildx bake slides
```
### Run and auto-reload
```shell
docker run --rm --init -v $(pwd)/slides:/home/marp/app -p 8080:8080 -p 37717:37717 marpteam/marp-cli:v1.4.2 -w -s -I .
# open your browser at http://localhost:8080
```
### GitHub Actions with `bake` and GitHub Pages
GitHub Action workflow available in [.github/workflows/slides.yml](.github/workflows/slides.yml)
## Demo app
### Sources
Sources available in [./demo](demo) folder.
### Build
```shell
git clone https://github.com/crazy-max/lorrainejug-buildx-bake.git
cd lorrainejug-buildx-bake
# build docker image and output to docker with lorrainejug-bake: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 Actions
GitHub Action workflow available in [.github/workflows/build.yml](.github/workflows/build.yml)
* Using [docker/bake-action](https://github.com/docker/bake-action) to:
* Create artifacts for [GitHub Releases](https://github.com/crazy-max/lorrainejug-buildx-bake/releases)
* Publish multi-platform Docker image to [Docker Hub](https://hub.docker.com/r/crazymax/lorrainejug-buildx-bake/tags?page=1&ordering=last_updated) and [GHCR](https://github.com/users/crazy-max/packages/container/package/lorrainejug-buildx-bake)
## License
MIT. See `LICENSE` for more details.