Skip to content

Commit

Permalink
combine publish gstreamer actions (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 authored Jun 6, 2024
1 parent 9b5216c commit 298d94b
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 56 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/publish-gstreamer-amd64.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/publish-gstreamer-arm64.yaml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/publish-gstreamer-base.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
on:
workflow_call:
inputs:
version:
required: true
type: string
buildjet-runs-on:
required: true
type: string
Expand All @@ -13,7 +16,7 @@ on:
DOCKERHUB_TOKEN:
required: true
env:
GST_VERSION: "1.22.8"
GST_VERSION: "${{ inputs.version }}"
LIBNICE_VERSION: "0.1.21"

jobs:
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/publish-gstreamer-tag.yaml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/publish-gstreamer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish GStreamer

on:
workflow_dispatch:
inputs:
version:
description: "GStreamer version to publish (e.g. 1.24.4)"
required: true
type: string

jobs:
gstreamer-build-amd64:
uses: ./.github/workflows/publish-gstreamer-base.yaml
with:
version: ${{ inputs.version }}
buildjet-runs-on: buildjet-8vcpu-ubuntu-2204
arch: amd64
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

gstreamer-build-arm64:
uses: ./.github/workflows/publish-gstreamer-base.yaml
with:
version: ${{ inputs.version }}
buildjet-runs-on: namespace-profile-arm-16
arch: arm64
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

tag-gstreamer-build:
needs: [gstreamer-build-amd64, gstreamer-build-arm64]
runs-on: ubuntu-latest
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: Run tag script
run: ./build/gstreamer/tag.sh ${{ inputs.version }}
3 changes: 1 addition & 2 deletions build/gstreamer/tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

image_suffix=(base dev prod prod-rs)
archs=(amd64 arm64)
gst_version=1.22.8
gst_version=$1

for suffix in ${image_suffix[*]}
do
Expand All @@ -24,4 +24,3 @@ do
docker manifest create livekit/gstreamer:$gst_version-$suffix$manifests
docker manifest push livekit/gstreamer:$gst_version-$suffix
done

0 comments on commit 298d94b

Please sign in to comment.