Skip to content

Commit

Permalink
Explicitly build and publish docker for develop/livekit branch (#2996)
Browse files Browse the repository at this point in the history
We don't need the tarball artifact and we have already done a build
  • Loading branch information
hughns authored Feb 7, 2025
1 parent 0128f2f commit 6e3fd10
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
7 changes: 0 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}}

0 comments on commit 6e3fd10

Please sign in to comment.