Skip to content

Commit

Permalink
Release to quay after tests pass
Browse files Browse the repository at this point in the history
Signed-off-by: Liora Milbaum <[email protected]>
  • Loading branch information
lmilbaum committed Apr 8, 2024
1 parent 0ae9386 commit c2c8fda
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/model_servers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
id: build_image
uses: redhat-actions/[email protected]
with:
image: ${{ env.REGISTRY }}/${{ matrix.image_name }}
image: ${{ env.REGISTRY }}/containers/${{ matrix.image_name }}
platforms: linux/amd64, linux/arm64
tags: latest
containerfiles: ./model_servers/${{ matrix.image_name }}/base/Containerfile
Expand Down
43 changes: 40 additions & 3 deletions .github/workflows/testing-framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:

workflow_dispatch:

# pull_request: ## temporary for debugging development purposes
# branches:
# - main
pull_request: ## temporary for debugging development purposes
branches:
- main

env:
TF_VAR_aws_region: "eu-west-2"
Expand Down Expand Up @@ -87,7 +87,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 ${{ env.SOURCE_REGISTRY }}/${{ matrix.source_image }} ${{ 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()
Expand Down

0 comments on commit c2c8fda

Please sign in to comment.