Skip to content

Commit 767ae3b

Browse files
committed
add outputs id
Signed-off-by: sirutBuasai <sirutbuasai27@outlook.com>
1 parent 3cd1e4f commit 767ae3b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/pr-sglang.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- codebuild-runner-${{ github.run_id }}-${{ github.run_attempt }}
4343
fleet:x86-build-runner
4444
outputs:
45-
image_uri: ${{ env.IMAGE_URI }}
45+
image_uri: ${{ steps.image_uri_build.outputs.IMAGE_URI }}
4646
steps:
4747
- uses: actions/checkout@v5
4848
- run: .github/scripts/runner_setup.sh
@@ -52,6 +52,7 @@ jobs:
5252
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
5353
5454
- name: Resolve image URI for build
55+
id: image_uri_build
5556
run: |
5657
IMAGE_URI=${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/ci:sglang-0.5.5-gpu-py312-cu129-ubuntu22.04-sagemaker-pr-${{ github.event.pull_request.number }}
5758
echo "Image URI to build: $IMAGE_URI"
@@ -90,17 +91,17 @@ jobs:
9091
- name: Checkout DLC source
9192
uses: actions/checkout@v5
9293

94+
- name: echo container
95+
run: |
96+
echo "image_uri: ${{ needs.build-sglang-image.outputs.IMAGE_URI }}"
97+
9398
- name: Container pull
9499
uses: ./.github/actions/container-pull
95100
with:
96101
aws_region: ${{ secrets.AWS_REGION }}
97102
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
98103
image_uri: ${{ needs.build-sglang-image.outputs.IMAGE_URI }}
99104

100-
- name: Container pull
101-
run: |
102-
echo "image_uri: ${{ needs.build-sglang-image.outputs.IMAGE_URI }}"
103-
104105
- name: Setup for SGLang datasets
105106
run: |
106107
mkdir -p /tmp/sglang/dataset

0 commit comments

Comments
 (0)