Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

combine publish gstreamer actions #693

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading