[CI] Replace upload/download-artifact with job outputs in release-docker workflow (#21579)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
daf02bde33
commit
33cca495ae
@@ -18,6 +18,9 @@ jobs:
|
|||||||
publish-x86:
|
publish-x86:
|
||||||
if: github.repository == 'sgl-project/sglang'
|
if: github.repository == 'sgl-project/sglang'
|
||||||
environment: "prod"
|
environment: "prod"
|
||||||
|
outputs:
|
||||||
|
digest-cu129: ${{ steps.build-cu129.outputs.digest }}
|
||||||
|
digest-cu130: ${{ steps.build-cu130.outputs.digest }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
variant:
|
variant:
|
||||||
@@ -75,6 +78,7 @@ jobs:
|
|||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build AMD64 Framework
|
- name: Build AMD64 Framework
|
||||||
|
id: build-cu129
|
||||||
run: |
|
run: |
|
||||||
version=${{ steps.version.outputs.version }}
|
version=${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
@@ -94,9 +98,10 @@ jobs:
|
|||||||
|
|
||||||
DIGEST=$(python3 -c "import json; print(json.load(open('/tmp/metadata-cu129-framework.json'))['containerimage.digest'])")
|
DIGEST=$(python3 -c "import json; print(json.load(open('/tmp/metadata-cu129-framework.json'))['containerimage.digest'])")
|
||||||
echo "Pushed digest: ${DIGEST}"
|
echo "Pushed digest: ${DIGEST}"
|
||||||
echo "${DIGEST}" > /tmp/digest-cu129-amd64-framework.txt
|
echo "digest=${DIGEST}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and Push AMD64 Framework (CUDA 13)
|
- name: Build and Push AMD64 Framework (CUDA 13)
|
||||||
|
id: build-cu130
|
||||||
run: |
|
run: |
|
||||||
version=${{ steps.version.outputs.version }}
|
version=${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
@@ -116,18 +121,14 @@ jobs:
|
|||||||
|
|
||||||
DIGEST=$(python3 -c "import json; print(json.load(open('/tmp/metadata-cu130-framework.json'))['containerimage.digest'])")
|
DIGEST=$(python3 -c "import json; print(json.load(open('/tmp/metadata-cu130-framework.json'))['containerimage.digest'])")
|
||||||
echo "Pushed digest: ${DIGEST}"
|
echo "Pushed digest: ${DIGEST}"
|
||||||
echo "${DIGEST}" > /tmp/digest-cu130-amd64-framework.txt
|
echo "digest=${DIGEST}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload digests
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: digests-amd64
|
|
||||||
path: /tmp/digest-*.txt
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
publish-arm64:
|
publish-arm64:
|
||||||
if: github.repository == 'sgl-project/sglang'
|
if: github.repository == 'sgl-project/sglang'
|
||||||
environment: "prod"
|
environment: "prod"
|
||||||
|
outputs:
|
||||||
|
digest-cu129: ${{ steps.build-cu129.outputs.digest }}
|
||||||
|
digest-cu130: ${{ steps.build-cu130.outputs.digest }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
variant:
|
variant:
|
||||||
@@ -174,6 +175,7 @@ jobs:
|
|||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build ARM64 Framework
|
- name: Build ARM64 Framework
|
||||||
|
id: build-cu129
|
||||||
run: |
|
run: |
|
||||||
version=${{ steps.version.outputs.version }}
|
version=${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
@@ -193,9 +195,10 @@ jobs:
|
|||||||
|
|
||||||
DIGEST=$(python3 -c "import json; print(json.load(open('/tmp/metadata-cu129-framework.json'))['containerimage.digest'])")
|
DIGEST=$(python3 -c "import json; print(json.load(open('/tmp/metadata-cu129-framework.json'))['containerimage.digest'])")
|
||||||
echo "Pushed digest: ${DIGEST}"
|
echo "Pushed digest: ${DIGEST}"
|
||||||
echo "${DIGEST}" > /tmp/digest-cu129-arm64-framework.txt
|
echo "digest=${DIGEST}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and Push ARM64 Framework (CUDA 13)
|
- name: Build and Push ARM64 Framework (CUDA 13)
|
||||||
|
id: build-cu130
|
||||||
run: |
|
run: |
|
||||||
version=${{ steps.version.outputs.version }}
|
version=${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
@@ -215,14 +218,7 @@ jobs:
|
|||||||
|
|
||||||
DIGEST=$(python3 -c "import json; print(json.load(open('/tmp/metadata-cu130-framework.json'))['containerimage.digest'])")
|
DIGEST=$(python3 -c "import json; print(json.load(open('/tmp/metadata-cu130-framework.json'))['containerimage.digest'])")
|
||||||
echo "Pushed digest: ${DIGEST}"
|
echo "Pushed digest: ${DIGEST}"
|
||||||
echo "${DIGEST}" > /tmp/digest-cu130-arm64-framework.txt
|
echo "digest=${DIGEST}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload digests
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: digests-arm64
|
|
||||||
path: /tmp/digest-*.txt
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
create-manifests:
|
create-manifests:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
@@ -264,26 +260,14 @@ jobs:
|
|||||||
|
|
||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Download amd64 digests
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: digests-amd64
|
|
||||||
path: /tmp/digests/amd64
|
|
||||||
|
|
||||||
- name: Download arm64 digests
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: digests-arm64
|
|
||||||
path: /tmp/digests/arm64
|
|
||||||
|
|
||||||
- name: Create multi-arch manifests
|
- name: Create multi-arch manifests
|
||||||
run: |
|
run: |
|
||||||
version=${{ steps.version.outputs.version }}
|
version=${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
CU129_AMD64_FW=$(cat /tmp/digests/amd64/digest-cu129-amd64-framework.txt)
|
CU129_AMD64_FW=${{ needs.publish-x86.outputs.digest-cu129 }}
|
||||||
CU130_AMD64_FW=$(cat /tmp/digests/amd64/digest-cu130-amd64-framework.txt)
|
CU130_AMD64_FW=${{ needs.publish-x86.outputs.digest-cu130 }}
|
||||||
CU129_ARM64_FW=$(cat /tmp/digests/arm64/digest-cu129-arm64-framework.txt)
|
CU129_ARM64_FW=${{ needs.publish-arm64.outputs.digest-cu129 }}
|
||||||
CU130_ARM64_FW=$(cat /tmp/digests/arm64/digest-cu130-arm64-framework.txt)
|
CU130_ARM64_FW=${{ needs.publish-arm64.outputs.digest-cu130 }}
|
||||||
|
|
||||||
# Create versioned framework manifest (default)
|
# Create versioned framework manifest (default)
|
||||||
docker buildx imagetools create \
|
docker buildx imagetools create \
|
||||||
|
|||||||
Reference in New Issue
Block a user