chore: update worker's dockerfile and use github action to build images #1
Workflow file for this run
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
name: Build KubeAGI worker images | |
on: | |
pull_request: | |
branches: [main] | |
paths: | |
- 'deploy/llms/Dockerfile.fastchat-worker' | |
workflow_dispatch: | |
env: | |
PYTHON_INDEX_URL: https://pypi.org/simple | |
jobs: | |
test_image_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
buildkitd-flags: --debug | |
config-inline: | | |
[worker.oci] | |
max-parallelism = 1 | |
- uses: benjlevesque/[email protected] | |
name: Get short commit sha | |
id: short-sha | |
- name: Build and push Fastchat Worker | |
id: push-worker | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: deploy/llms/Dockerfile.fastchat-worker | |
platforms: linux/amd64,linux/arm64 | |
push: false | |
build-args: | | |
PYTHON_INDEX_URL=${{ env.PYTHON_INDEX_URL }} |