|
1 | | -name: Build example images |
| 1 | +name: Build example runner images |
2 | 2 |
|
3 | | -# Build each example in the matrix; publish to Docker Hub as |
4 | | -# livepeer/sample-<example> on main / v* tags / manual dispatch. PRs build only — |
5 | | -# use workflow_dispatch to pull-test a branch. |
6 | | -# amd64 only: Livepeer GPU work needs NVIDIA on amd64; no CUDA on arm64/Mac. |
7 | | -# Add an example: add its folder (with a Dockerfile) to the matrix + paths below. |
| 3 | +# This repo ships EXAMPLE runners: images publish as <namespace>/runner-example-<name>. |
| 4 | +# Production runners drop "example" (runner-<name>). |
| 5 | +# |
| 6 | +# Runs on main / v* tags / manual dispatch; PRs build only (workflow_dispatch to |
| 7 | +# pull-test a branch). amd64 only (Livepeer GPU work is NVIDIA/amd64; no CUDA on |
| 8 | +# arm64/Mac). Add an example: add its folder (with a Dockerfile) to the matrix + |
| 9 | +# paths below. |
8 | 10 | on: |
9 | 11 | push: |
10 | 12 | branches: [main] |
|
40 | 42 | id: meta |
41 | 43 | uses: docker/metadata-action@v5 |
42 | 44 | with: |
43 | | - # Defaults to the livepeer org; set repo variable DOCKERHUB_NAMESPACE to |
44 | | - # publish under your own account (e.g. to test with your own Docker Hub). |
45 | | - images: ${{ vars.DOCKERHUB_NAMESPACE || 'livepeer' }}/sample-${{ matrix.example }} |
| 45 | + # Namespace defaults to livepeer; override via repo variable DOCKERHUB_NAMESPACE. |
| 46 | + images: ${{ vars.DOCKERHUB_NAMESPACE || 'livepeer' }}/runner-example-${{ matrix.example }} |
46 | 47 | tags: | |
47 | 48 | type=raw,value=latest,enable={{is_default_branch}} |
48 | 49 | type=sha,format=short |
|
51 | 52 | type=semver,pattern={{major}}.{{minor}} |
52 | 53 | type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/v') }} |
53 | 54 | labels: | |
54 | | - org.opencontainers.image.title=sample-${{ matrix.example }} |
55 | | - org.opencontainers.image.description=Livepeer sample app (${{ matrix.example }}) — example, not production-ready |
| 55 | + org.opencontainers.image.title=runner-example-${{ matrix.example }} |
| 56 | + org.opencontainers.image.description=Livepeer live-runner example (${{ matrix.example }}) — example, not production-ready |
56 | 57 |
|
57 | 58 | - name: Set up Buildx |
58 | 59 | uses: docker/setup-buildx-action@v3 |
|
0 commit comments