diff --git a/docs/DEVELOPER.md b/docs/DEVELOPER.md index 7925159..aeb14aa 100644 --- a/docs/DEVELOPER.md +++ b/docs/DEVELOPER.md @@ -76,9 +76,12 @@ scp bin/sslip.io-dns-server-linux-arm64 ns-aws: scp bin/sslip.io-dns-server-linux-amd64 ns-azure: ssh ns-aws sudo install sslip.io-dns-server-linux-arm64 /usr/bin/sslip.io-dns-server ssh ns-aws sudo shutdown -r now -while ! dig @ns-aws.sslip.io ns-aws.sslip.io; do sleep 5; done # wait until it's back up before rebooting ns-azure +sleep 10; while ! dig @ns-aws.sslip.io ns-aws.sslip.io; do sleep 5; done # wait until it's back up before rebooting ns-azure ssh ns-azure sudo install sslip.io-dns-server-linux-amd64 /usr/bin/sslip.io-dns-server ssh ns-azure sudo shutdown -r now +sleep 10; while ! dig @ns-aws.sslip.io ns-aws.sslip.io; do sleep 5; done # wait until it's back up before rebooting ns-azure +dig @ns-aws.sslip.io version.status.sslip.io txt +short # confirm new version +dig @ns-azure.sslip.io version.status.sslip.io txt +short # confirm new version ``` - Browse to to draft a new release - Drag and drop `~/Downloads/sslip.io-release-${VERSION}.tgz` to the _Attach @@ -88,23 +91,11 @@ ssh ns-azure sudo shutdown -r now ```bash fly -t nono trigger-job -j dockerfiles/build-and-push-sslip.io-dns-server ``` -Prepare the BOSH release -```bash -shasum ~/Downloads/sslip.io-release-${VERSION}.tgz -lpass show a # refresh LastPass token so we don't get stuck next step -z deployments -git pull -r -nvim sslip.io.yml -bosh -e vsphere -d sslip.io deploy sslip.io.yml -l <(lpass show --note deployments.yml) --no-redact -git add -p -git ci -v -m"Bump sslip.io BOSH release: $OLD_VERSION → $VERSION" -git push -popd -``` Update the webservers with the HTML with new versions: ```bash ssh nono.io curl -L -o /www/sslip.io/document_root/index.html https://raw.githubusercontent.com/cunnie/sslip.io/main/k8s/document_root/index.html ssh ns-aws.sslip.io curl -L -o /var/nginx/sslip.io/index.html https://raw.githubusercontent.com/cunnie/sslip.io/main/k8s/document_root/index.html +ssh ns-azure.sslip.io curl -L -o /var/nginx/sslip.io/index.html https://raw.githubusercontent.com/cunnie/sslip.io/main/k8s/document_root/index.html ``` Update GCP/GKE with the new executable: ```bash