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 3, 2024
1 parent 0250934 commit 54a89ff
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "Build UBI image"

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

push:
branches: [main]

pull_request:

jobs:
timeout-minutes: 2400 # 4h
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=4
NVCC_THREADS=2
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: vlm
path: /tmp/image.tar

0 comments on commit 54a89ff

Please sign in to comment.