From 690e0ad618ece11d34ae4e00b2707e560953247a Mon Sep 17 00:00:00 2001 From: Brian Cunnie Date: Sat, 27 Nov 2021 15:53:44 -0800 Subject: [PATCH] New Release Documentation: no more manual Docker images The Docker images are now created automatically with our pipeline. That's right: with 80 hours of work we saved 30 seconds of work! We are nothing if not efficient. --- docs/DEVELOPER.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/DEVELOPER.md b/docs/DEVELOPER.md index ce9110e..d948ef4 100644 --- a/docs/DEVELOPER.md +++ b/docs/DEVELOPER.md @@ -3,7 +3,7 @@ These instructions are meant primarily for me when deploying a new BOSH release; they might not make sense unless you're on my workstation. -```zsh +```bash export OLD_VERSION=2.2.2 export VERSION=2.2.3 cd ~/workspace/sslip.io @@ -77,7 +77,7 @@ ssh ns-aws sudo shutdown -r now - Drag and drop the executables in `bin/` to the _Attach binaries..._ section. 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 @@ -92,17 +92,13 @@ git push popd ``` Update the webserver 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/master/k8s/document_root/index.html exit ``` -Update the Dockerfile with the new release: -``` -docker build k8s/ -f k8s/Dockerfile-sslip.io-dns-server -t cunnie/sslip.io-dns-server:$VERSION -t cunnie/sslip.io-dns-server:latest -docker push cunnie/sslip.io-dns-server -a -git add -p -git ci -m"Dockerfile cunnie/sslip.io-dns-server: bump $OLD_VERSION → $VERSION" -git push +Update GCP/GKE with the new executable: +```bash kubectl rollout restart deployment/sslip.io +kubectl rollout restart deployment/sslip.io-nginx ```