Explicitly build and publish docker for develop/livekit branch (#2996)
We don't need the tarball artifact and we have already done a build
This commit is contained in:
14
.github/workflows/build.yaml
vendored
14
.github/workflows/build.yaml
vendored
@@ -47,3 +47,17 @@ jobs:
|
|||||||
version: '${{ github.sha }}'
|
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
.github/workflows/publish.yaml
vendored
7
.github/workflows/publish.yaml
vendored
@@ -3,11 +3,6 @@ name: Build & publish images to the package registry for releases
|
|||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
workflow_run:
|
|
||||||
workflows: ["Build"]
|
|
||||||
branches: [livekit]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
@@ -68,5 +63,3 @@ jobs:
|
|||||||
docker_tags: |
|
docker_tags: |
|
||||||
type=sha,format=short,event=branch
|
type=sha,format=short,event=branch
|
||||||
type=semver,pattern=v{{version}}
|
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}}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user