forked from containers/podman-desktop-extension-ai-lab
-
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.
Signed-off-by: Liora Milbaum <[email protected]>
- Loading branch information
Showing
6 changed files
with
48 additions
and
11 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 |
---|---|---|
|
@@ -18,7 +18,7 @@ on: | |
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository_owner }}/chatbot | ||
IMAGE_NAME: chatbot | ||
|
||
jobs: | ||
build-and-push-image: | ||
|
@@ -43,25 +43,25 @@ jobs: | |
id: build_image | ||
uses: redhat-actions/[email protected] | ||
with: | ||
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
image: ${{ env.REGISTRY }}/containers/${{ env.IMAGE_NAME }} | ||
tags: latest | ||
platforms: linux/amd64, linux/arm64 | ||
containerfiles: ./recipes/natural_language_processing/chatbot/builds/Containerfile | ||
context: recipes/natural_language_processing/chatbot | ||
containerfiles: ./recipes/natural_language_processing/${{ env.IMAGE_NAME }}/builds/Containerfile | ||
context: recipes/natural_language_processing/${{ env.IMAGE_NAME }} | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install Dependencies | ||
working-directory: ./recipes/natural_language_processing/chatbot | ||
working-directory: ./recipes/natural_language_processing/${{ env.IMAGE_NAME }} | ||
run: make install | ||
|
||
- name: Run Functional Tests | ||
working-directory: ./recipes/natural_language_processing/chatbot | ||
shell: bash | ||
run: make functional-tests | ||
working-directory: ./recipes/natural_language_processing/${{ env.IMAGE_NAME }} | ||
|
||
- name: Login to Registry | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
|
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 |
---|---|---|
|
@@ -49,7 +49,7 @@ jobs: | |
id: build_image | ||
uses: redhat-actions/[email protected] | ||
with: | ||
image: ${{ env.REGISTRY }}/${{ matrix.image_name }} | ||
image: ${{ env.REGISTRY }}/${{ github.repository_owner}}/${{ matrix.image_name }} | ||
platforms: linux/amd64, linux/arm64 | ||
tags: latest | ||
containerfiles: ./model_servers/${{ matrix.image_name }}/base/Containerfile | ||
|
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 |
---|---|---|
|
@@ -89,7 +89,44 @@ jobs: | |
if: always() | ||
run: terraform destroy -auto-approve -lock=false | ||
working-directory: terraform-test-environment-module | ||
|
||
- name: Publish Job Results to Slack | ||
id: slack | ||
if: always() | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"text": "${{ github.workflow }} workflow status: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
release-images: | ||
runs-on: ubuntu-latest | ||
needs: integration-tests | ||
if: success() | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- image: llamacpp_python | ||
- image: whispercpp | ||
- image: chatbot | ||
steps: | ||
- name: Login to registry | ||
uses: redhat-actions/[email protected] | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.REGISTRY_USER }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
|
||
- name: Copy image from one registry to another one | ||
run: skopeo copy --all docker://${{ env.SOURCE_REGISTRY }}/${{ matrix.image }} docker://${{ env.TARGET_REGISTRY }}/${{ matrix.image }} | ||
env: | ||
SOURCE_REGISTRY: ghcr.io/containers | ||
TARGET_REGISTRY: quay.io/ai-lab | ||
|
||
- name: Publish Job Results to Slack | ||
id: slack | ||
if: always() | ||
|
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
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
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