Skip to content

Build container image #5

Build container image

Build container image #5

Workflow file for this run

# Build a Docker/Podman container with dash-mpd-cli and its external helper applications.
name: Build container image
on: workflow_dispatch
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
jobs:
build-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
name: Build and push container/Linux
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to ghcr.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
- name: Build container image with podman
id: build-image
run: podman build -f Containerfile --tag dash-mpd-cli \
--label org.opencontainers.image.description="Download media content from a DASH-MPEG or DASH-WebM MPD manifest." \
--label org.opencontainers.image.title="dash-mpd-cli" \
--label org.opencontainers.image.url="https://github.com/emarsden/dash-mpd-cli" \
--label org.opencontainers.image.source="https://github.com/emarsden/dash-mpd-cli" \
--label org.opencontainers.image.version="0.2.9" \
--label org.opencontainers.image.authors="[email protected]" \
--label org.opencontainers.image.licenses="MIT,GPL-2.0-or-later"
- name: Push container image
id: push-to-registry
uses: redhat-actions/push-to-registry@v2
with:
image: dash-mpd-cli
tags: latest
registry: ${{ env.IMAGE_REGISTRY }}