Simplified .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Piotr Biernat 2021-11-21 17:12:11 +00:00
parent a1682660bd
commit d151907f8f

View File

@ -72,8 +72,8 @@ steps:
image: golang:1.17
commands:
- while ! ls /tmp/server_hostname; do sleep 1; done
- server_hostname=$(cat /tmp/server_hostname)
- curl -fsS http://$server_hostname:8080/health | grep OK
# - server_hostname=$(cat /tmp/server_hostname)
- curl -fsS http://$(cat /tmp/server_hostname):8080/health | grep OK
# - "[ $(curl -fsS http://$server_hostname:8080/health | grep OK | wc -l) = 0 ] && { echo 'Not running.'; return 1; } || { echo 'Vegvisir is running.'; return 0; }"
volumes:
- name: tmp_cache