Skip to content

Commit 96d976b

Browse files
committed
update
Signed-off-by: Junpu Fan <junpu@amazon.com>
1 parent f3e7416 commit 96d976b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/pr-example.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,17 @@ jobs:
4646
run: |
4747
DATE=$(date +"%Y-%m-%d")
4848
COMMIT_REF=$(git rev-parse HEAD)
49+
REPO=${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/ci
50+
TAG=vllm-0.10.2-gpu-py312-cu128-ubuntu22.04-rayserve-ec2-pr-${{ github.event.pull_request.number }}-"${COMMIT_REF}"
51+
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
4952
DOCKER_BUILDKIT=1 docker build --progress plain \
5053
--build-arg CACHE_REFRESH="${DATE}" \
51-
--tag vllm:0.10.2-gpu-py312-cu128-ubuntu22.04-rayserve-ec2-"${COMMIT_REF}" \
54+
--tag "${REPO}":"${TAG}" \
5255
--target vllm-rayserve-ec2 \
5356
-f docker/vllm/Dockerfile.rayserve .
54-
docker image ls
57+
docker push "${REPO}":"${TAG}"
58+
docker rmi "${REPO}":"${TAG}"
59+
yes | docker system prune
5560
5661
example-on-g6xl-runner-1:
5762
needs: [example-on-build-runner]

0 commit comments

Comments
 (0)