https://github.com/crazy-max/twitch-demo-gha
Twitch demo GitHub Actions
https://github.com/crazy-max/twitch-demo-gha
Last synced: 4 months ago
JSON representation
Twitch demo GitHub Actions
- Host: GitHub
- URL: https://github.com/crazy-max/twitch-demo-gha
- Owner: crazy-max
- Created: 2022-04-28T13:35:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-28T16:51:38.000Z (about 4 years ago)
- Last Synced: 2024-10-18T07:31:21.706Z (over 1 year ago)
- Language: HCL
- Homepage: https://crazymax.dev/twitch-demo-gha/
- Size: 286 KB
- Stars: 0
- Watchers: 3
- 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
# GitHub Actions and Docker
Demo of GitHub Actions and Docker @ [Docker Engineering Twitch](https://www.twitch.tv/docker_engineering)
___
* [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/twitch-demo-gha/
### Render
```shell
git clone https://github.com/crazy-max/twitch-demo-gha.git twitch-demo-gha
cd twitch-demo-gha
# generate slides and will be available in ./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 -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/twitch-demo-gha.git twitch-demo-gha
cd twitch-demo-gha
# build docker image and output to docker with twitch-demo-gha: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 workflows available in [.github/workflows](.github/workflows)
* Using [docker/bake-action](https://github.com/docker/bake-action) to:
* Create artifacts for [GitHub Releases](https://github.com/crazy-max/twitch-demo-gha/releases)
* Publish multi-platform Docker image to [Docker Hub](https://hub.docker.com/r/crazymax/twitch-demo-gha/tags?page=1&ordering=last_updated)
## License
MIT. See `LICENSE` for more details.