diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54a5b670609da74280e34768aec314ac6e38f691..c08fe7451937f29293449bcb77a838bc6b3983d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,6 +58,9 @@ build sidecar rabbit init: # no need to build if another project triggered us - if: $CI_PIPELINE_SOURCE == "pipeline" when: never + # no need to build with tags or non-master...probably + - if: '$CI_COMMIT_BRANCH != "master"' + when: never - changes: - sidecars/cspp-geo-rabbit-init/Dockerfile - sidecars/cspp-geo-rabbit-init/declare_exchange.py diff --git a/helpers/deploy_rabbitmq.sh b/helpers/deploy_rabbitmq.sh index 7ed6abca30c07b68b96c5172163c7656b771029a..47b16dc7b74623f5fbfb5ed8ad123afe1b114915 100755 --- a/helpers/deploy_rabbitmq.sh +++ b/helpers/deploy_rabbitmq.sh @@ -31,7 +31,7 @@ helm upgrade -v 2 --install --kubeconfig $kubeconfig -f ${values_base}/values-ge # do a little waiting for the rabbitmq pod to be ready so future stages # don't fail to communicate with it echo "Start waiting for rabbitmq: $(date +%Y%m%dT%H%M%S)" -kubectl wait -n $ns pod/geosphere-rabbit-rabbitmq-0 --timeout 120s --for=condition=Ready +kubectl2 wait -n $ns pod/geosphere-rabbit-rabbitmq-0 --timeout 120s --for=condition=Ready status=$? echo "Done waiting for rabbitmq: $(date +%Y%m%dT%H%M%S) : $status" exit $status diff --git a/helpers/shell_aliases.sh b/helpers/shell_aliases.sh index 70fabf3072159b8184cca9108c710836400d3195..0079eb493ab558f7b568e1341fd4a528d3411b4e 100644 --- a/helpers/shell_aliases.sh +++ b/helpers/shell_aliases.sh @@ -11,3 +11,8 @@ kubectl() { docker run -a stdout --rm -v $(pwd):/apps -w /apps alpine/k8s:1.18.2 kubectl "$@" } export -f kubectl + +kubectl2() { + docker run --rm -v $(pwd):/apps -w /apps alpine/k8s:1.18.2 kubectl "$@" +} +export -f kubectl2