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: Test container image build and deployment | |
on: | |
pull_request: | |
paths-ignore: | |
- "LICENSE*" | |
- "**.gitignore" | |
- "**.md" | |
- "**.txt" | |
- ".github/ISSUE_TEMPLATE/**" | |
- ".github/dependabot.yml" | |
- "docs/**" | |
- "clients/python/docs/**" | |
env: | |
IMG_ORG: kubeflow | |
IMG_REPO: model-registry | |
PUSH_IMAGE: false | |
BRANCH: ${{ github.base_ref }} | |
jobs: | |
build-and-test-csi-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 local model registry image | |
shell: bash | |
env: | |
VERSION: ${{ steps.tags.outputs.tag }} | |
run: ./scripts/build_deploy.sh | |
- name: Build local custom storage initializer | |
working-directory: ./csi | |
shell: bash | |
env: | |
IMG_VERSION: ${{ steps.tags.outputs.tag }} | |
# TODO: update go.mod to use local model registry library | |
run: make docker-build | |
- name: Start KinD cluster | |
uses: helm/[email protected] | |
with: | |
node_image: "kindest/node:v1.27.11" | |
- name: Install kustomize | |
run: ./csi/scripts/install_kustomize.sh | |
- name: Run tests | |
working-directory: ./csi | |
shell: bash | |
env: | |
MR_IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}" | |
MR_CSI_IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}-storage-initializer:${{ steps.tags.outputs.tag }}" | |
run: ./test/e2e_test.sh |