-
Notifications
You must be signed in to change notification settings - Fork 2
/
manual_release.sh
executable file
·35 lines (29 loc) · 1.42 KB
/
manual_release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
##!/usr/bin/env bash
set -e
VERSION=$(python hyperdock/version.py)
echo "Releasing version $VERSION"
sleep 2
echo "Tagging and pushing to Github"
git tag -a -m "Release v$VERSION" $VERSION
git push && git push --tags
echo "Uploading to PyPI"
python setup.py sdist upload
echo "Building Docker images"
docker build -t erikgartner/hyperdock-webui:$VERSION -f "docker/Dockerfile.webui" web/
docker build -t erikgartner/hyperdock-supervisor:$VERSION -f "docker/Dockerfile.supervisor" .
docker build -t erikgartner/hyperdock-worker:$VERSION -f "docker/Dockerfile.worker" .
docker build -t erikgartner/hyperdock-demo:$VERSION -f "docker/Dockerfile.template" .
echo "Tagging Docker images"
docker tag erikgartner/hyperdock-supervisor:$VERSION erikgartner/hyperdock-supervisor:latest
docker tag erikgartner/hyperdock-worker:$VERSION erikgartner/hyperdock-worker:latest
docker tag erikgartner/hyperdock-webui:$VERSION erikgartner/hyperdock-webui:latest
docker tag erikgartner/hyperdock-demo:$VERSION erikgartner/hyperdock-demo:latest
echo "Pushing Docker images"
docker push erikgartner/hyperdock-supervisor:$VERSION
docker push erikgartner/hyperdock-worker:$VERSION
docker push erikgartner/hyperdock-webui:$VERSION
docker push erikgartner/hyperdock-demo:$VERSION
docker push erikgartner/hyperdock-supervisor:latest
docker push erikgartner/hyperdock-worker:latest
docker push erikgartner/hyperdock-webui:latest
docker push erikgartner/hyperdock-demo:latest