Skip to content

Commit

Permalink
Update docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin committed Mar 13, 2024
1 parent 103b190 commit 8b4bf9b
Showing 1 changed file with 37 additions and 9 deletions.
46 changes: 37 additions & 9 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,49 @@ on:
jobs:
build-docker-image:

runs-on: aws-avx2-32G-a10g-24G
timeout-minutes: 60
runs-on: aws-avx2-192G-4-a10g-96G
timeout-minutes: 240

steps:

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug

- name: Login to Github Packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: checkout
id: checkout
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ inputs.gitref }}
fetch-depth: 1
submodules: recursive

- name: Build Docker Image
- name: Get version tag
id: extract_tag
run: echo "tag=$(date +%Y%m%d)" >> $GITHUB_OUTPUT

- name: Current Version Name
run: echo ${{ steps.extract_tag.outputs.tag }}

- name: nm-vllm latest
uses: docker/build-push-action@v2
with:
context: .
target: vllm-openai
push: true
tags: ghcr.io/neuralmagic/nm-vllm-openai:latest

- name: Today's nm-vllm-nightly
uses: docker/build-push-action@v2
with:
context: .
load: true # Ensures image is loaded into Docker daemon but not pushed
target: vllm-openai
push: true
tags: ghcr.io/neuralmagic/nm-vllm-openai:${{ steps.extract_tag.outputs.tag }}

0 comments on commit 8b4bf9b

Please sign in to comment.