Skip to content

install ffmpeg as the last step of the build #20

install ffmpeg as the last step of the build

install ffmpeg as the last step of the build #20

Workflow file for this run

name: Build and push karaberus images
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
on:
push:
branches:
- karaberus
jobs:
build:
name: ${{ matrix.config.arch }} build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
strategy:
matrix:
config:
- target: ""
arch: x86_64
- target: aarch64-linux-gnu
arch: aarch64
steps:
- uses: actions/checkout@v4
- name: Docker Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.IMAGE_NAME }}
tags: |
type=sha
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=schedule
- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: ${{ github.ref_name }}-${{ matrix.config.arch }}
labels: ${{ steps.meta.outputs.labels }}
containerfiles: Containerfile
build-args: TARGET=${{ matrix.config.target }}
- name: Push image
id: push-image
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ github.ref_name }}-${{ matrix.config.arch }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}