forked from kmahyyg/ztncui-aio
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
506ab5a
commit 1b5a2c3
Showing
5 changed files
with
55 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.2.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
HTTP_ALL_INTERFACES=yes | ||
HTTP_PORT=3000 | ||
MYADDR=1.2.3.4 | ||
ZTNCUI_PASSWD=Th1sPa55W0rd | ||
MYDOMAIN=ztncui.docker.test | ||
HTTPS_PORT=3443 | ||
ZTNCUI_PASSWD=password | ||
MYDOMAIN=ztncui.docker.test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
# Derived from https://medium.com/travis-on-docker/how-to-version-your-docker-images-1d5c577ebf54 | ||
|
||
set -ex | ||
|
||
USERNAME=keynetworks | ||
IMAGE=ztncui | ||
|
||
# bump version | ||
docker run --rm -v "$PWD":/app treeder/bump patch | ||
version=`cat VERSION` | ||
echo "version: $version" | ||
|
||
# build | ||
docker build -t $USERNAME/$IMAGE:latest . | ||
|
||
# tag it | ||
git add -A | ||
git commit -m "version $version" | ||
git tag -a "$version" -m "version $version" | ||
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$version | ||
|
||
# push it | ||
docker login --username=$USERNAME | ||
docker push $USERNAME/$IMAGE:latest | ||
docker push $USERNAME/$IMAGE:$version |