Skip to content

Commit

Permalink
Push image to kind cluster before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrancoa committed Sep 16, 2024
1 parent 90398ff commit 9e2ffa6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -48,4 +62,4 @@ jobs:
kubectl logs -l app=weaviate -n weaviate --all-containers=true --prefix
fi


2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: semitechnologies/weaviate-operator
newTag: 0.0.1
newTag: 0.0.2

0 comments on commit 9e2ffa6

Please sign in to comment.