From 6e3fd1026846c2f7d24588d842718c9f97857b38 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Fri, 7 Feb 2025 16:31:44 +0000 Subject: [PATCH] Explicitly build and publish docker for develop/livekit branch (#2996) We don't need the tarball artifact and we have already done a build --- .github/workflows/build.yaml | 14 ++++++++++++++ .github/workflows/publish.yaml | 7 ------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 36bda9ba..d2692a3a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -47,3 +47,17 @@ jobs: version: '${{ github.sha }}' } }) + docker_for_develop: + # Build docker and publish docker for livekit branch after build completes + if: github.ref == 'refs/heads/livekit' + needs: build_element_call + permissions: + contents: write + packages: write + uses: ./.github/workflows/build-and-publish-docker.yaml + with: + artifact_run_id: ${{ github.run_id }} + docker_tags: | + type=sha,format=short,event=branch + type=raw,value=latest-ci + type=raw,value=latest-ci_{{date 'X' }} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4afb9d72..2922465a 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -3,11 +3,6 @@ name: Build & publish images to the package registry for releases on: release: types: [published] - workflow_run: - workflows: ["Build"] - branches: [livekit] - types: - - completed env: REGISTRY: ghcr.io @@ -68,5 +63,3 @@ jobs: docker_tags: | type=sha,format=short,event=branch type=semver,pattern=v{{version}} - type=raw,value=latest-ci,enable={{is_default_branch}} - type=raw,value=latest-ci_${{needs.publish_tarball.outputs.unix_time}},enable={{is_default_branch}}