-
Notifications
You must be signed in to change notification settings - Fork 76
81 lines (73 loc) · 2.41 KB
/
publish-gstreamer-base.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
on:
workflow_call:
inputs:
version:
required: true
type: string
buildjet-runs-on:
required: true
type: string
arch:
required: true
type: string
secrets:
DOCKERHUB_USERNAME:
required: true
DOCKERHUB_TOKEN:
required: true
env:
GST_VERSION: "${{ inputs.version }}"
LIBNICE_VERSION: "0.1.21"
jobs:
base-gstreamer-build:
runs-on: ${{ inputs.buildjet-runs-on }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push base
uses: docker/build-push-action@v6
with:
context: ./build/gstreamer
push: true
build-args: |
GSTREAMER_VERSION=${{ env.GST_VERSION }}
LIBNICE_VERSION=${{ env.LIBNICE_VERSION }}
file: ./build/gstreamer/Dockerfile-base
tags: livekit/gstreamer:${{ env.GST_VERSION }}-base-${{ inputs.arch }}
- name: Build and push dev
uses: docker/build-push-action@v6
with:
context: ./build/gstreamer
push: true
build-args: |
GSTREAMER_VERSION=${{ env.GST_VERSION }}
LIBNICE_VERSION=${{ env.LIBNICE_VERSION }}
file: ./build/gstreamer/Dockerfile-dev
tags: livekit/gstreamer:${{ env.GST_VERSION }}-dev-${{ inputs.arch }}
- name: Build and push prod
uses: docker/build-push-action@v6
with:
context: ./build/gstreamer
push: true
build-args: |
GSTREAMER_VERSION=${{ env.GST_VERSION }}
LIBNICE_VERSION=${{ env.LIBNICE_VERSION }}
file: ./build/gstreamer/Dockerfile-prod
tags: livekit/gstreamer:${{ env.GST_VERSION }}-prod-${{ inputs.arch }}
- name: Build and push prod RS
uses: docker/build-push-action@v6
with:
context: ./build/gstreamer
push: true
build-args: |
GSTREAMER_VERSION=${{ env.GST_VERSION }}
LIBNICE_VERSION=${{ env.LIBNICE_VERSION }}
file: ./build/gstreamer/Dockerfile-prod-rs
tags: livekit/gstreamer:${{ env.GST_VERSION }}-prod-rs-${{ inputs.arch }}