mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-09 01:20:05 +08:00

Include deploying the servers, which is the most important part. And updating the webserver's HTML, too.
2.0 KiB
2.0 KiB
Updating BOSH Releases
These instructions are meant primarily for me when deploying a new BOSH release; the might not make sense unless you're on my workstation.
export OLD_VERSION=1.1.2
export VERSION=1.2.0
cd ~/workspace/sslip.io
git pull -r
sed -i '' "s~/$OLD_VERSION/~/$VERSION/~g" k8s/document_root/index.html # update the download instructions on the website
lpass show a # refresh LastPass token
. ~/workspace/deployments/.envrc # set BOSH auth
export BOSH_DEPLOYMENT=sslip.io-dns-server
bosh create-release --force
bosh upload-release
bosh -n -d sslip.io-dns-server deploy ~/workspace/deployments/sslip.io-dns-server.yml --recreate
bosh instances # record the IP address of the instance
IP=10.0.250.22
dig +short 127.0.0.1.example.com @$IP # 127.0.0.1
dig +short ns example.com @$IP # ns-aws, ns-azure, ns-gce
dig +short mx example.com @$IP # 1 x themselves
dig +short mx sslip.io @$IP # 2 x protonmail
bosh upload-blobs
bosh create-release \
--final \
--tarball ~/Downloads/sslip.io-release-${VERSION}.tgz \
--version ${VERSION} --force
git add -N releases/ .final_builds/
git add -p
git ci -v # BOSH release: 1.2.0: bugfixes
git tag $VERSION
git push
git push --tags
bin/make_all
- Browse to https://github.com/cunnie/sslip.io/releases/new to draft a new release
- Drag and drop
~/Downloads/sslip.io-release-${VERSION}.tgz
to the Attach binaries... section - Drag and drop the executables in
bin/
to the Attach binaries... section.
Prepare the BOSH release
shasum ~/Downloads/sslip.io-release-${VERSION}.tgz
z deployments
nvim sslip.io.yml
bosh -e vsphere -d sslip.io deploy sslip.io.yml -l <(lpass show --note deployments.yml) --no-redact
dig +short 127-0-0-1.sslip.io # output should be 127.0.0.1
git add -p
git ci -v -m"Bump sslip.io: $OLD_VERSION → $VERSION"
git push
Update the webserver with the HTML with new versions:
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