Skip to content

Commit

Permalink
Use kind registry
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed Jul 3, 2023
1 parent b46e1f0 commit 86f9e9c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .ci/clusters/values_runner_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ functions:
disk: 1048576000
functionRuntimeFactoryConfigs:
functionDockerImages:
JAVA: "streamnative/pulsar-functions-java-runner:2.9.2.23"
PYTHON: "streamnative/pulsar-functions-python-runner:2.9.2.23"
GO: "streamnative/pulsar-functions-go-runner:2.9.2.23"
JAVA: "localhost:5000/pulsar-functions-java-runner:2.9.2.23"
PYTHON: "localhost:5000/pulsar-functions-python-runner:2.9.2.23"
GO: "localhost:5000/pulsar-functions-go-runner:2.9.2.23"
functionInstanceMinResources:
cpu: 0.1
ram: 10485760
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-function-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ jobs:
.ci/cleanup.sh
- name: Build runner images
env:
DOCKER_REPO: localhost:5000
run: |
PULSAR_IMAGE_TAG=2.9.2.23 PULSAR_IMAGE=streamnative/pulsar-all KIND_PUSH=true images/build.sh
PULSAR_IMAGE_TAG=2.9.2.23 PULSAR_IMAGE=streamnative/pulsar-all KIND_PUSH=false images/build.sh
- name: Verify function runner
run: |
Expand Down
9 changes: 9 additions & 0 deletions images/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ if [ "$KIND_PUSH" = true ] ; then
kind load docker-image "${DOCKER_REPO}"/${PULSARCTL_GO_RUNNER}:"${RUNNER_TAG}" --name $cluster
done
fi

if [ "$DOCKER_REPO" = "localhost:5000" ]; then
docker push "${DOCKER_REPO}"/${JAVA_RUNNER}:"${RUNNER_TAG}"
docker push "${DOCKER_REPO}"/${PULSARCTL_JAVA_RUNNER}:"${RUNNER_TAG}"
docker push "${DOCKER_REPO}"/${PYTHON_RUNNER}:"${RUNNER_TAG}"
docker push "${DOCKER_REPO}"/${PULSARCTL_PYTHON_RUNNER}:"${RUNNER_TAG}"
docker push "${DOCKER_REPO}"/${GO_RUNNER}:"${RUNNER_TAG}"
docker push "${DOCKER_REPO}"/${PULSARCTL_GO_RUNNER}:"${RUNNER_TAG}"
fi
#
#if [ "$CI_TEST" = true ] ; then
# echo "apply images to function mesh ci yaml"
Expand Down

0 comments on commit 86f9e9c

Please sign in to comment.