From 65de904130ea4dc8ba1bd3d906557d768cfd0363 Mon Sep 17 00:00:00 2001 From: Douglas Yang Date: Tue, 24 Feb 2026 11:33:05 -0800 Subject: [PATCH] feature: adding image retag workflow (#19265) --- .github/workflows/retag-docker.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/retag-docker.yml diff --git a/.github/workflows/retag-docker.yml b/.github/workflows/retag-docker.yml new file mode 100644 index 000000000..633a275ed --- /dev/null +++ b/.github/workflows/retag-docker.yml @@ -0,0 +1,30 @@ +name: Retag Docker Image + +on: + workflow_dispatch: + inputs: + source_tag: + description: "Existing image tag (e.g., v0.4.7-cu129-amd64)" + required: true + target_tag: + description: "New tag to apply (e.g., latest)" + required: true + +jobs: + retag: + if: github.repository == 'sgl-project/sglang' + runs-on: ubuntu-22.04 + environment: "prod" + steps: + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Retag image + run: | + echo "Retagging lmsysorg/sglang:${{ inputs.source_tag }} -> lmsysorg/sglang:${{ inputs.target_tag }}" + docker buildx imagetools create \ + -t lmsysorg/sglang:${{ inputs.target_tag }} \ + lmsysorg/sglang:${{ inputs.source_tag }}