mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
re-push to internal registry
Signed-off-by: Adrien <adrien@huggingface.co>
This commit is contained in:
parent
da82c63a4f
commit
2a5a2e9923
19
.github/workflows/build.yaml
vendored
19
.github/workflows/build.yaml
vendored
@ -27,8 +27,8 @@ jobs:
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-build-and-push-image-${{ inputs.hardware }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
# TODO see with @Glegendre to get CPU runner here instead
|
||||
runs-on: [self-hosted, intel-cpu, 32-cpu, 256-ram, ci]
|
||||
runs-on:
|
||||
group: aws-use1-r7i-8xlarge-priv
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
@ -49,7 +49,7 @@ jobs:
|
||||
export dockerfile="Dockerfile"
|
||||
export label_extension=""
|
||||
export docker_devices=""
|
||||
export runs_on="nvidia-gpu"
|
||||
export runs_on="aws-use1-g5-12xlarge"
|
||||
;;
|
||||
rocm)
|
||||
export dockerfile="Dockerfile_amd"
|
||||
@ -79,9 +79,15 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
install: true
|
||||
config-inline: |
|
||||
buildkitd-config-inline: |
|
||||
[registry."docker.io"]
|
||||
mirrors = ["registry.github-runners.huggingface.tech"]
|
||||
- name: Login to internal Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
registry: ${{ secrets.REGISTRY_URL }}
|
||||
- name: Login to GitHub Container Registry
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
@ -104,6 +110,7 @@ jobs:
|
||||
with:
|
||||
images: |
|
||||
registry-push.github-runners.huggingface.tech/api-inference/community/text-generation-inference
|
||||
${{ secrets.REGISTRY_URL }}/api-inference/community/text-generation-inference
|
||||
tags: |
|
||||
type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}
|
||||
# If main, release or tag
|
||||
@ -116,6 +123,7 @@ jobs:
|
||||
latest=auto
|
||||
images: |
|
||||
registry-push.github-runners.huggingface.tech/api-inference/community/text-generation-inference
|
||||
${{ secrets.REGISTRY_URL }}/api-inference/community/text-generation-inference
|
||||
ghcr.io/huggingface/text-generation-inference
|
||||
db4c2190dd824d1f950f5d1555fbadf0.azurecr.io/text-generation-inference
|
||||
tags: |
|
||||
@ -150,7 +158,8 @@ jobs:
|
||||
group: ${{ github.workflow }}-${{ github.job }}-${{ needs.build-and-push.outputs.label }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
needs: build-and-push
|
||||
runs-on: ["self-hosted", "${{ needs.build-and-push.outputs.runs_on }}", "multi-gpu"]
|
||||
runs-on:
|
||||
group: ${{ needs.build-and-push.outputs.runs_on }}
|
||||
if: needs.build-and-push.outputs.runs_on != 'ubuntu-latest'
|
||||
env:
|
||||
PYTEST_FLAGS: ${{ (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || inputs.release-tests == true) && '--release' || '' }}
|
||||
|
Loading…
Reference in New Issue
Block a user