An open API service indexing awesome lists of open source software.

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

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.