Implement model registry inference service reconciliation #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: Controller image deployment and e2e test | |
on: | |
pull_request: | |
paths-ignore: | |
- 'LICENSE*' | |
- '**.gitignore' | |
- '**.md' | |
- '**.txt' | |
- '.github/ISSUE_TEMPLATE/**' | |
- '.github/dependabot.yml' | |
- 'doc/**' | |
jobs: | |
build-and-test-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate Tag | |
shell: bash | |
id: tags | |
run: | | |
commit_sha=${{ github.event.after }} | |
tag=main-${commit_sha:0:7} | |
echo "tag=${tag}" >> $GITHUB_OUTPUT | |
- name: Build Controller | |
shell: bash | |
env: | |
IMG: "quay.io/opendatahub/odh-model-controller:${{ steps.tags.outputs.tag }}" | |
run: make IMG=${IMG} docker-build | |
- name: Start Kind Cluster | |
uses: helm/[email protected] | |
with: | |
config: ./test/config/kind-e2e-config.yaml | |
cluster_name: e2e-kind-cluster | |
- name: Load Local Registry Test Image | |
env: | |
IMG: "quay.io/opendatahub/odh-model-controller:${{ steps.tags.outputs.tag }}" | |
run: | | |
kind load docker-image -n e2e-kind-cluster ${IMG} | |
- name: Deploy Controller With Test Image | |
env: | |
IMG: "quay.io/opendatahub/odh-model-controller:${{ steps.tags.outputs.tag }}" | |
run: | | |
echo "Deploying controller from odh-model-controller branch ${BRANCH}" | |
make IMG=${IMG} deploy-e2e | |
- name: Run e2e Tests | |
timeout-minutes: 5 | |
run: | | |
echo "Running e2e Test for odh-model-controller" | |
make e2e-test |