mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-31 07:00:56 -05:00
* Push dev branch images to dockerhub * temporarily update dockerhub push condition * Temporarily disable dockerhub push * Suggestions * Add back code to push to dockerhub * Use github.ref_name instead of github.ref.name
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Build and push a branch image to ghcr
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- dev
|
|
repository_dispatch:
|
|
types: [benchmark-trigger-image-build]
|
|
|
|
jobs:
|
|
branch-build-and-push:
|
|
if: ${{ !github.event.client_payload.triggered }}
|
|
runs-on: [self-hosted, linux, x64]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
ref: ${{ github.ref_name }}
|
|
- uses: ./.github/actions/branch-build-and-push
|
|
with:
|
|
ghcr-password: ${{ secrets.GITHUB_TOKEN }}
|
|
dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
push-to-ghcr: true
|
|
# Only push 'dev' branch to Docker Hub
|
|
push-to-dockerhub: ${{ github.ref_name == 'dev' }}
|
|
|
|
triggered-branch-build-and-push:
|
|
if: ${{ github.event.client_payload.triggered }}
|
|
runs-on: [self-hosted, linux, x64]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
ref: ${{ github.event.client_payload.version }}
|
|
- uses: ./.github/actions/branch-build-and-push
|
|
with:
|
|
ghcr-password: ${{ secrets.GITHUB_TOKEN }}
|
|
push-to-ghcr: true
|