Skip to content

Commit

Permalink
fix(sh): debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeptossss committed Dec 14, 2023
1 parent 682d653 commit 7219b88
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kube/helm/whanos-deploy/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Default values for AutoDeploy.
# Default values for whanos-deploy.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

Expand Down
4 changes: 4 additions & 0 deletions kube/helm/whanos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jenkins:
privileged: true
runAsUser: 0
runAsGroup: 0
podName: "whanos"
volumes:
- type: HostPath
hostPath: /var/run/docker.sock
Expand All @@ -96,3 +97,6 @@ jenkins:
envVars:
- name: DOCKER_REGISTRY
value: "whanos-registry.local"
serviceAccountAgent:
create: true
name: "whanos"
7 changes: 5 additions & 2 deletions scripts/deploy_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ NAME=$2
image_name=$DOCKER_REGISTRY/whanos/whanos-$NAME-$LANGUAGE

if [[ -f whanos.yml ]]; then
printf "🏗️ Installing application\n"
printf "NAME: %s\n" "$NAME"
printf "LANGUAGE: %s\n" "$LANGUAGE"
printf "IMAGE_NAME: %s\n" "$image_name"
printf "DOCKER_REGISTRY: %s\n" "$DOCKER_REGISTRY"
helm upgrade -if whanos.yml "$NAME" /whanos/helm/whanos-deploy --set image.image="$image_name" --set image.name="$NAME-name"

external_ip=""
Expand All @@ -16,12 +21,10 @@ if [[ -f whanos.yml ]]; then
break
fi
sleep 5
echo -n "."
external_ip=$(kubectl get svc "$NAME"-lb --template="{{range .status.loadBalancer.ingress}}{{.ip}}{{end}}")
ip_timeout=$(($ip_timeout - 1))
done

echo "."
echo "$external_ip"
else
exit 0
Expand Down

0 comments on commit 7219b88

Please sign in to comment.