Skip to content

Commit

Permalink
try with minikube image load
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Kral <[email protected]>
  • Loading branch information
im-konge committed Nov 6, 2024
1 parent 851b243 commit 5e9f39c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .azure/templates/jobs/run_systemtests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,21 @@ jobs:
eval $(minikube docker-env)
DOCKER_ARCHITECTURE=$(arch) make docker_load
make docker_tag
make docker_push
minikube image load $(docker_registry)/$(docker_org)/drain-cleaner:$(docker_tag)
env:
BUILD_TAG: latest-$(arch)
displayName: 'Docker load & tag & push to local registries - $(arch)'
- script: |
echo "##vso[task.setvariable variable=docker_registry]$(kubectl get service registry -n kube-system -o=jsonpath='{.spec.clusterIP}'):80"
displayName: "Set docker_registry to local registry in minikube"
condition: eq(variables['docker_registry'], 'localhost:5000')
# - script: |
# echo "##vso[task.setvariable variable=docker_registry]$(kubectl get service registry -n kube-system -o=jsonpath='{.spec.clusterIP}'):80"
# displayName: "Set docker_registry to local registry in minikube"
# condition: eq(variables['docker_registry'], 'localhost:5000')
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
publishJUnitResults: true
goals: 'verify'
options: '-B -Psystemtest'
env:
DOCKER_REGISTRY: registry.minikube
DOCKER_ORG: $(docker_org)
DOCKER_TAG: $(docker_tag)
TEST_LOG_DIR: $(test_log_dir)
Expand All @@ -55,7 +54,6 @@ jobs:
goals: 'verify'
options: '-B -Psystemtest'
env:
DOCKER_REGISTRY: registry.minikube
DOCKER_ORG: $(docker_org)
DOCKER_TAG: $(docker_tag)
DC_INSTALL_TYPE: Helm
Expand Down

0 comments on commit 5e9f39c

Please sign in to comment.