run_tests_in_kubernetes.sh 414 Bytes
Newer Older
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
#!/bin/bash

IMAGE_NAME='integration_tester'
IMAGE_TAG='latest'
CI_REGISTRY_IMAGE='registry.gitlab.com/teraflow-h2020/controller'

kubectl delete pod $(echo $IMAGE_NAME | sed -r 's/[^a-zA-Z0-9\.\-]/-/g') --wait=true --ignore-not-found=true
kubectl get all
kubectl run $(echo $IMAGE_NAME | sed -r 's/[^a-zA-Z0-9\.\-]/-/g') --image "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$IMAGE_TAG" --restart=Never --rm -i
kubectl get all