Skip to content

Commit

Permalink
gha: add docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrifiro committed Oct 4, 2024
1 parent 0250934 commit 93f347e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Build UBI image"

on:
schedule:
- cron: "20 4 * * 1" # once a week
workflow_dispatch:

push:
branches: [main]

pull_request:

jobs:
build-image:
name: "Build UBI image"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Free Disk Space
uses: jlumbroso/[email protected]
with:
tool-cache: false

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and export
uses: docker/build-push-action@v5
with:
context: .
tags: vllm
# outputs: type=oci,dest=/tmp/image.tar
outputs: type=docker,dest=/tmp/image.tar
file: ./Dockerfile.ubi
secrets: |
"AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}"
"AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}"
build-args: |
MAX_JOBS=2
NVCC_THREADS=2
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: vlm
path: /tmp/image.tar

0 comments on commit 93f347e

Please sign in to comment.