mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
misc(ci): use commit HEAD instead of merge commit for image id
This commit is contained in:
parent
8f0da401a9
commit
3c7710c0db
6
.github/workflows/build_trtllm.yaml
vendored
6
.github/workflows/build_trtllm.yaml
vendored
@ -30,6 +30,8 @@ jobs:
|
|||||||
group: ${{ inputs.runs-on }}
|
group: ${{ inputs.runs-on }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4.4.1
|
uses: rlespinasse/github-slug-action@v4.4.1
|
||||||
@ -82,7 +84,7 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
registry.internal.huggingface.tech/api-inference/community/text-generation-inference/tensorrt-llm
|
registry.internal.huggingface.tech/api-inference/community/text-generation-inference/tensorrt-llm
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}
|
type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}-${{ env.LABEL }}
|
||||||
|
|
||||||
# If main, release or tag
|
# If main, release or tag
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
@ -99,7 +101,7 @@ jobs:
|
|||||||
type=semver,pattern={{version}}${{ env.LABEL }}
|
type=semver,pattern={{version}}${{ env.LABEL }}
|
||||||
type=semver,pattern={{major}}.{{minor}}${{ env.LABEL }}
|
type=semver,pattern={{major}}.{{minor}}${{ env.LABEL }}
|
||||||
type=raw,value=latest${{ env.LABEL }},enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
type=raw,value=latest${{ env.LABEL }},enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
||||||
type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}
|
type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}-${{ env.LABEL }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
|
Loading…
Reference in New Issue
Block a user