-
Notifications
You must be signed in to change notification settings - Fork 35
43 lines (33 loc) · 1.08 KB
/
container.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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
- 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 }}