forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change cuda base image to ubuntu 22.04
- Loading branch information
1 parent
daed30c
commit 2c0b9ad
Showing
3 changed files
with
85 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Build and upload image | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
actor: | ||
required: true | ||
type: string | ||
|
||
imageTag: | ||
required: true | ||
type: string | ||
|
||
dockerfile: | ||
required: true | ||
type: string | ||
|
||
secrets: | ||
ghToken: | ||
required: true | ||
|
||
env: | ||
REGISTRY: ghcr.io/ateleris/vllm | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ inputs.actor }} | ||
password: ${{ secrets.ghToken }} | ||
|
||
- name: Build and push Docker image | ||
id: push | ||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 | ||
with: | ||
context: . | ||
file: ${{ inputs.dockerfile }} | ||
push: true | ||
tags: ${{ env.REGISTRY }}:${{ inputs.imageTag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Build nvidia-base image | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build image | ||
uses: ./.github/workflows/build-and-upload-image.yml | ||
with: | ||
actor: ${{ github.actor }} | ||
dockerfile: Dockerfile | ||
imageTag: latest | ||
secrets: | ||
ghToken: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters