Skip to content

Commit

Permalink
Merge pull request #221 from sallyom/add-codegen-images
Browse files Browse the repository at this point in the history
add codegen image to ai-lab
  • Loading branch information
sallyom authored Apr 10, 2024
2 parents cd6730d + 75dc554 commit 426143a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ailab_image_build_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
env:
REGISTRY: quay.io/ai-lab
CHATBOT_IMAGE_NAME: chatbot
CODEGEN_IMAGE_NAME: codegen
SUMMARIZER_IMAGE_NAME: summarizer
LLAMACPP_PYTHON_IMAGE_NAME: llamacpp-python
LLAMACPP_PYTHON_VULKAN_IMAGE_NAME: llamacpp-python-vulkan
Expand Down Expand Up @@ -224,6 +225,46 @@ jobs:
image: ${{ steps.build_chromadb.outputs.image }}
tags: ${{ steps.build_chromadb.outputs.tags }}

build-and-push-codegen-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/[email protected]

# required for multi-arch builds
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build codegen image
id: build_codegen_image
uses: redhat-actions/[email protected]
with:
image: ${{ env.CODEGEN_IMAGE_NAME }}
tags: latest ${{ github.sha }}
platforms: linux/amd64, linux/arm64
containerfiles: ./recipes/natural_language_processing/codegen/builds/Containerfile
context: recipes/natural_language_processing/codegen

- name: Login to quay.io
uses: redhat-actions/podman-login@v1
with:
registry: quay.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Push codegen image
id: push_codegen_image
uses: redhat-actions/[email protected]
with:
registry: ${{ env.REGISTRY }}
image: ${{ steps.build_codegen_image.outputs.image }}
tags: ${{ steps.build_codegen_image.outputs.tags }}

build-and-push-chatbot-image:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 426143a

Please sign in to comment.