From f0ed9c353e954b9860a0cab8bf76e80c651c48b6 Mon Sep 17 00:00:00 2001 From: Yineng Zhang Date: Fri, 13 Dec 2024 02:23:52 +0800 Subject: [PATCH] feat: support dev image (#2469) --- .github/workflows/release-docker-dev.yml | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release-docker-dev.yml diff --git a/.github/workflows/release-docker-dev.yml b/.github/workflows/release-docker-dev.yml new file mode 100644 index 00000000000..1526f802e53 --- /dev/null +++ b/.github/workflows/release-docker-dev.yml @@ -0,0 +1,35 @@ +name: Build Development Docker Image + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + +jobs: + build-dev: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Free disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + docker-images: false + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: false + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and Push Dev Image + run: | + docker build . -f docker/Dockerfile.dev -t lmsysorg/sglang:dev --no-cache + docker push lmsysorg/sglang:dev