mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-06 16:18:00 +08:00
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.
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
These instructions are meant primarily for me when deploying a new BOSH release;
|
These instructions are meant primarily for me when deploying a new BOSH release;
|
||||||
they might not make sense unless you're on my workstation.
|
they might not make sense unless you're on my workstation.
|
||||||
|
|
||||||
```zsh
|
```bash
|
||||||
export OLD_VERSION=2.2.2
|
export OLD_VERSION=2.2.2
|
||||||
export VERSION=2.2.3
|
export VERSION=2.2.3
|
||||||
cd ~/workspace/sslip.io
|
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.
|
- Drag and drop the executables in `bin/` to the _Attach binaries..._ section.
|
||||||
|
|
||||||
Prepare the BOSH release
|
Prepare the BOSH release
|
||||||
```
|
```bash
|
||||||
shasum ~/Downloads/sslip.io-release-${VERSION}.tgz
|
shasum ~/Downloads/sslip.io-release-${VERSION}.tgz
|
||||||
lpass show a # refresh LastPass token so we don't get stuck next step
|
lpass show a # refresh LastPass token so we don't get stuck next step
|
||||||
z deployments
|
z deployments
|
||||||
@@ -92,17 +92,13 @@ git push
|
|||||||
popd
|
popd
|
||||||
```
|
```
|
||||||
Update the webserver with the HTML with new versions:
|
Update the webserver with the HTML with new versions:
|
||||||
```
|
```bash
|
||||||
ssh nono.io
|
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
|
curl -L -o /www/sslip.io/document_root/index.html https://raw.githubusercontent.com/cunnie/sslip.io/master/k8s/document_root/index.html
|
||||||
exit
|
exit
|
||||||
```
|
```
|
||||||
Update the Dockerfile with the new release:
|
Update GCP/GKE with the new executable:
|
||||||
```
|
```bash
|
||||||
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
|
|
||||||
kubectl rollout restart deployment/sslip.io
|
kubectl rollout restart deployment/sslip.io
|
||||||
|
kubectl rollout restart deployment/sslip.io-nginx
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user