File tree 5 files changed +10
-8
lines changed
5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,15 @@ if [ "$TEST_CLUSTER" = "minikube" ]; then
61
61
mkdir $HOME /.kube || true
62
62
touch $HOME /.kube/config
63
63
64
- docker run -d -p 127.0.0.1:5000:5000 ${MINIKUBE_REGISTRY_IMAGE}
64
+ # TODO - It seems this is no needed at all :O
65
+ # docker run -d -p 127.0.0.1:5000:5000 ${MINIKUBE_REGISTRY_IMAGE}
65
66
66
67
export KUBECONFIG=$HOME /.kube/config
67
68
# We can turn on network polices support by adding the following options --network-plugin=cni --cni=calico
68
69
# We have to allow trafic for ITS when NPs are turned on
69
70
# We can allow NP after Strimzi#4092 which should fix some issues on STs side
70
71
minikube start --vm-driver=docker --kubernetes-version=${KUBE_VERSION} \
71
- --insecure-registry=127.0.0.1 :5000 --extra-config=apiserver.authorization-mode=Node,RBAC \
72
+ --insecure-registry=$( minikube ip ) :5000 --extra-config=apiserver.authorization-mode=Node,RBAC \
72
73
--cpus=${MINIKUBE_CPU} --memory=${MINIKUBE_MEMORY} --force
73
74
74
75
if [ $? -ne 0 ]
Original file line number Diff line number Diff line change 39
39
# User docker buildx
40
40
DOCKER_BUILDX : buildx
41
41
# Add option to load image into running Docker daemon and push into local registry to make it available between buildx executions
42
- DOCKER_BUILD_ARGS : " --load --push --build-arg=BUILD_REGISTRY=127.0.0.1 :5000/"
43
- BUILD_REGISTRY : " 127.0.0.1 :5000/"
42
+ DOCKER_BUILD_ARGS : " --load --push --build-arg=BUILD_REGISTRY=$(minikube ip) :5000/"
43
+ BUILD_REGISTRY : " $(minikube ip) :5000/"
44
44
# TODO - check if these are needed
45
45
DOCKER_BUILDKIT : 1
46
46
DOCKER_CLI_EXPERIMENTAL : enabled
Original file line number Diff line number Diff line change 26
26
shell : bash
27
27
# eval $(minikube docker-env)
28
28
run : |
29
+ eval $(minikube docker-env)
29
30
make docker_load docker_tag docker_push docker_e2e docker_delete_archive
30
31
31
32
docker images -a
Original file line number Diff line number Diff line change 28
28
# Not main, not tag/release => treat as PR
29
29
echo "PULL_REQUEST=true" >> $GITHUB_ENV
30
30
echo "DOCKER_ORG=strimzi" >> $GITHUB_ENV
31
- echo "DOCKER_REGISTRY=127.0.0.1 :5000" >> $GITHUB_ENV
31
+ echo "DOCKER_REGISTRY=$(minikube ip) :5000" >> $GITHUB_ENV
32
32
echo "COMMIT=${{ github.sha }}" >> $GITHUB_ENV
33
33
echo "TAG=pr" >> $GITHUB_ENV
34
34
fi
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ jobs:
177
177
178
178
- name : DEBUG - registry
179
179
run : |
180
- curl -s 127.0.0.1 :5000/v2/_catalog
180
+ curl -s $(minikube ip) :5000/v2/_catalog
181
181
cat /etc/resolv.conf
182
182
183
183
# Build Strimzi and its images => used when running STs against PR or main branch where container images should be built
@@ -199,7 +199,7 @@ jobs:
199
199
200
200
- name : DEBUG - registry v2
201
201
run : |
202
- curl -s 127.0.0.1 :5000/v2/_catalog
202
+ curl -s $(minikube ip) :5000/v2/_catalog
203
203
204
204
- name : Cache local Maven repository
205
205
uses : actions/cache@v4
@@ -247,7 +247,7 @@ jobs:
247
247
# Default value for PRs is localhost:5000 because we need to push built images into minikube registry and make them available for pods
248
248
# ###########################################################################
249
249
- name : " Set docker_registry to local registry in minikube"
250
- if : ${{ contains(env.DOCKER_REGISTRY, '127.0.0.1 :5000') }}
250
+ if : ${{ contains(env.DOCKER_REGISTRY, ':5000') }}
251
251
run : |
252
252
echo "DOCKER_REGISTRY=$(kubectl get service registry -n kube-system -o=jsonpath='{.spec.clusterIP}'):80" >> $GITHUB_ENV
253
253
You can’t perform that action at this time.
0 commit comments