2022-09-08 12:52:00 +02:00
|
|
|
name: Container
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags: ["[0-9]+.[0-9]+.[0-9]+*"]
|
|
|
|
branches: [main]
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
|
2022-09-14 20:31:42 +02:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
|
2022-09-08 12:52:00 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
env:
|
|
|
|
REGISTRY: ghcr.io
|
|
|
|
NAMESPACE: ${{ github.repository_owner }}
|
|
|
|
|
|
|
|
if: ${{ github.repository_owner == 'libretime' }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: ${{ env.REGISTRY }}
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build libretime-analyzer
|
|
|
|
uses: ./.github/workflows/actions/build-container
|
|
|
|
with:
|
|
|
|
target: libretime-analyzer
|
|
|
|
images: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/libretime-analyzer
|
|
|
|
|
|
|
|
- name: Build libretime-api
|
|
|
|
uses: ./.github/workflows/actions/build-container
|
|
|
|
with:
|
|
|
|
target: libretime-api
|
|
|
|
images: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/libretime-api
|
|
|
|
|
|
|
|
- name: Build libretime-playout
|
|
|
|
uses: ./.github/workflows/actions/build-container
|
|
|
|
with:
|
|
|
|
target: libretime-playout
|
|
|
|
images: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/libretime-playout
|
|
|
|
|
|
|
|
- name: Build libretime-worker
|
|
|
|
uses: ./.github/workflows/actions/build-container
|
|
|
|
with:
|
|
|
|
target: libretime-worker
|
|
|
|
images: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/libretime-worker
|
|
|
|
|
|
|
|
- name: Build libretime-legacy
|
|
|
|
uses: ./.github/workflows/actions/build-container
|
|
|
|
with:
|
|
|
|
target: libretime-legacy
|
|
|
|
images: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/libretime-legacy
|