Skip to content

Commit 028b825

Browse files
authored
Merge pull request #83 from huggingface/new-ci
CI - Move to new runners
2 parents 04cdbaa + d5d92c1 commit 028b825

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

.github/workflows/build-container.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
dockerfile: dockerfiles/pytorch/Dockerfile
2323
build_args: "BASE_IMAGE=ubuntu:22.04"
2424
secrets:
25-
TAILSCALE_AUTHKEY: ${{ secrets.TAILSCALE_AUTHKEY }}
2625
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
2726
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
2827
starlette-pytorch-gpu:
@@ -31,7 +30,6 @@ jobs:
3130
image: inference-pytorch-gpu
3231
dockerfile: dockerfiles/pytorch/Dockerfile
3332
secrets:
34-
TAILSCALE_AUTHKEY: ${{ secrets.TAILSCALE_AUTHKEY }}
3533
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
3634
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
3735
starlette-pytorch-inf2:
@@ -40,6 +38,5 @@ jobs:
4038
image: inference-pytorch-inf2
4139
dockerfile: dockerfiles/pytorch/Dockerfile.inf2
4240
secrets:
43-
TAILSCALE_AUTHKEY: ${{ secrets.TAILSCALE_AUTHKEY }}
4441
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
4542
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}

.github/workflows/docker-build-action.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,15 @@ on:
2525
required: true
2626
REGISTRY_PASSWORD:
2727
required: true
28-
TAILSCALE_AUTHKEY:
29-
required: true
3028

3129
jobs:
3230
buildx:
33-
runs-on: [single-gpu, nvidia-gpu, t4, ci]
31+
runs-on:
32+
group: aws-highmemory-32-plus-priv
3433
steps:
3534
- name: Check out
3635
uses: actions/checkout@v3
3736

38-
- name: Tailscale
39-
uses: huggingface/tailscale-action@v1
40-
with:
41-
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
42-
slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }}
43-
slackToken: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
44-
4537
- name: Set up Docker Buildx
4638
uses: docker/[email protected]
4739
with:
@@ -66,9 +58,4 @@ jobs:
6658
target: base
6759
file: ${{ inputs.context }}/${{ inputs.dockerfile }}
6860
tags: ${{ inputs.repository }}/${{ inputs.image }}:sha-${{ env.GITHUB_SHA_SHORT }},${{ inputs.repository }}/${{ inputs.image }}:latest
69-
70-
- name: Tailscale Wait
71-
if: ${{ failure() || runner.debug == '1' }}
72-
uses: huggingface/tailscale-action@v1
73-
with:
74-
waitForSSH: true
61+

dockerfiles/pytorch/Dockerfile.inf2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build based on https://github.com/aws/deep-learning-containers/blob/master/huggingface/pytorch/inference/docker/2.1/py3/sdk2.18.0/Dockerfile.neuronx
2-
FROM ubuntu:20.04
2+
FROM ubuntu:20.04 as base
33

44
LABEL maintainer="Hugging Face"
55

@@ -119,4 +119,4 @@ COPY src/huggingface_inference_toolkit/webservice_starlette.py webservice_starle
119119
# copy entrypoint and change permissions
120120
COPY --chmod=0755 scripts/entrypoint.sh entrypoint.sh
121121

122-
ENTRYPOINT ["bash", "-c", "./entrypoint.sh"]
122+
ENTRYPOINT ["bash", "-c", "./entrypoint.sh"]

0 commit comments

Comments
 (0)