Skip to content

Build nightly container image of latest code #63

Build nightly container image of latest code

Build nightly container image of latest code #63

Workflow file for this run

name: Build nightly container image of latest code
on:
schedule:
- cron: '30 7 * * *'
permissions:
contents: read
jobs:
nightly-build:
name: Build image
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Login to DockerHub
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# for setuptools-scm
fetch-depth: 0
- name: Free disk space
uses: ./.github/actions/free-disk-space
- name: Setup Python 3.11
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.11"
- name: Get the current date
run: |
echo "NOW=$(date +'%Y-%m-%d')" >> "$GITHUB_ENV"
- name: Build lmcache/vllm-openai container image
run: |
docker build \
--build-arg CUDA_VERSION=12.8 --build-arg UBUNTU_VERSION=24.04 \
--target image-build \
--tag lmcache/vllm-openai:latest-nightly --tag lmcache/vllm-openai:nightly-${{ env.NOW }} \
--file docker/Dockerfile .
- name: Push lmcache/vllm-openai container image to DockerHub
run: |
docker push lmcache/vllm-openai:latest-nightly
docker push lmcache/vllm-openai:nightly-${{ env.NOW }}