message: implement push-local-registry
diff: @@ -559,7 +559,8 @@ build-list:
  done
  # Define list of all tests
  -all-k8s-tests-list:= nginx
  +all-k8s-tests-list:= nginx \
  + drupal
  all-k8s-tests = $(foreach image,$(all-k8s-tests-list),k8s-tests/$(image))
  # Run all k8s tests
  @@ -567,10 +568,26 @@ all-k8s-tests = $(foreach image,$(all-k8s-tests-list),k8s-tests/$(image))
  k8s-tests: $(all-k8s-tests)
  .PHONY: $(all-k8s-tests)
  -$(all-k8s-tests): k3d kubernetes-test-services-up
  +$(all-k8s-tests): k3d kubernetes-test-services-up push-local-registry
  $(eval testname = $(subst k8s-tests/,,$@))
  IMAGE_REPO=$(CI_BUILD_TAG) docker-compose -p $(CI_BUILD_TAG) run --rm tests-kubernetes ansible-playbook /ansible/tests/$(testname).yaml $(testparameter)
  +# push command of our base images into minishift
  +push-local-registry-images = $(foreach image,$(base-images) $(base-images-with-versions),[push-local-registry]-$(image))
  +# tag and push all images
  +.PHONY: push-local-registry
  +push-local-registry: $(push-local-registry-images)
  +# tag and push of each image
  +.PHONY: $(push-local-registry-images)
  +$(push-local-registry-images):
  + $(eval image = $(subst [push-local-registry]-,,$@))
  + $(eval image = $(subst __,:,$(image)))
  + $(info pushing $(image) to local local-registry)
  + if docker inspect $(CI_BUILD_TAG)/$(image) > /dev/null 2>&1; then \
  + docker tag $(CI_BUILD_TAG)/$(image) localhost:5000/lagoon/$(image) && \
  + docker push localhost:5000/lagoon/$(image) | cat; \
  + fi
  +
  # Define list of all tests
  all-openshift-tests-list:= features \
  node \
  