diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 402ce7b..5ad441b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -21,6 +21,20 @@ jobs: - name: Build the Weaviate Operator image run: make docker-build + - name: Push operator image to Kind cluster + run: | + # Get VERSION from the Makefile + VERSION=$(sed -n 's/^VERSION ?= //p' Makefile) + # Get IMAGE_TAG_BASE from the Makefile + IMAGE_TAG_BASE=$(sed -n 's/^IMAGE_TAG_BASE ?= //p' Makefile) + # Name of the kind cluster (modify as needed) + KIND_CLUSTER_NAME=weaviate-k8s + # Construct the full image tag + FULL_IMAGE_TAG="${IMAGE_TAG_BASE}:${VERSION}" + # Load the docker image into the kind cluster + echo "Loading image ${FULL_IMAGE_TAG} into kind cluster ${KIND_CLUSTER_NAME}..." + kind load docker-image "$FULL_IMAGE_TAG" --name "$KIND_CLUSTER_NAME" + - name: Install Weaviate Operator run: make deploy @@ -48,4 +62,4 @@ jobs: kubectl logs -l app=weaviate -n weaviate --all-containers=true --prefix fi - \ No newline at end of file + diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 7d23e34..e8dd773 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -5,4 +5,4 @@ kind: Kustomization images: - name: controller newName: semitechnologies/weaviate-operator - newTag: 0.0.1 + newTag: 0.0.2