This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://redirect.github.com/actions/checkout) | action | major | `v4` -> `v5` | --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v5`](https://redirect.github.com/actions/checkout/compare/v4...v5) [Compare Source](https://redirect.github.com/actions/checkout/compare/v4...v5) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/libretime/libretime). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS42MC40IiwidXBkYXRlZEluVmVyIjoiNDEuNjAuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiY2kiLCJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
106 lines
3.0 KiB
YAML
106 lines
3.0 KiB
YAML
name: Container
|
|
|
|
on:
|
|
push:
|
|
tags: ["[0-9]+.[0-9]+.[0-9]+*"]
|
|
branches: [main, stable-*]
|
|
pull_request:
|
|
branches: [main, stable-*]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
meta:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
target: [analyzer, api, legacy, nginx, playout, worker]
|
|
|
|
if: ${{ github.repository_owner == 'libretime' }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Update Docker Hub description
|
|
if: github.event_name == 'push'
|
|
uses: peter-evans/dockerhub-description@v4
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
repository: libretime/libretime-${{ matrix.target }}
|
|
readme-filepath: ./README.md
|
|
|
|
- uses: docker/metadata-action@v5
|
|
id: meta
|
|
with:
|
|
bake-target: ${{ matrix.target }}
|
|
images: |
|
|
ghcr.io/libretime/libretime-${{ matrix.target }}
|
|
docker.io/libretime/libretime-${{ matrix.target }}
|
|
tags: |
|
|
type=ref,event=branch
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
|
|
- name: Upload metadata bake file
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: meta-${{ matrix.target }}
|
|
path: ${{ steps.meta.outputs.bake-file }}
|
|
|
|
build:
|
|
needs: [meta]
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.repository_owner == 'libretime' }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login ghcr.io
|
|
if: github.event_name == 'push'
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Login docker.io
|
|
if: github.event_name == 'push'
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: docker.io
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Download all metadata bake files
|
|
uses: actions/download-artifact@v5
|
|
with:
|
|
pattern: meta-*
|
|
|
|
- name: Guess LIBRETIME_VERSION
|
|
run: |
|
|
make VERSION
|
|
echo "LIBRETIME_VERSION=$(cat VERSION | tr -d [:blank:])" >> $GITHUB_ENV
|
|
|
|
- name: Build
|
|
uses: docker/bake-action@v6
|
|
with:
|
|
source: .
|
|
pull: true
|
|
push: ${{ github.event_name == 'push' }}
|
|
files: |
|
|
docker-bake.json
|
|
meta-analyzer/docker-metadata-action-bake.json
|
|
meta-api/docker-metadata-action-bake.json
|
|
meta-legacy/docker-metadata-action-bake.json
|
|
meta-nginx/docker-metadata-action-bake.json
|
|
meta-playout/docker-metadata-action-bake.json
|
|
meta-worker/docker-metadata-action-bake.json
|
|
set: |
|
|
*.cache-from=type=gha,scope=container
|
|
*.cache-to=type=gha,scope=container,mode=max
|
|
*.args.LIBRETIME_VERSION=${{ env.LIBRETIME_VERSION }}
|