From 6f59b8bfc1ded6cc85784c4a4d88078e10a41de6 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 15 Sep 2017 21:37:51 +0200 Subject: [PATCH] version 0.26.2 --- Dockerfile | 1 + VERSION | 1 + build.sh | 6 ++++++ release.sh | 27 +++++++++++++++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 VERSION create mode 100755 build.sh create mode 100755 release.sh diff --git a/Dockerfile b/Dockerfile index 30780eb..0b74dfd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM alpine:latest MAINTAINER Ryan Kes +ADD VERSION . ENV HUGO_VERSION 0.26 ENV HUGO_BINARY hugo_${HUGO_VERSION}_linux-64bit diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..46830f8 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.26.2 \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..b5fb423 --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +set -ex + +USERNAME=andthensome +IMAGE=alpine-hugo-git-bash + +sudo docker build -t $USERNAME/$IMAGE:latest . diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..972390a --- /dev/null +++ b/release.sh @@ -0,0 +1,27 @@ +set -ex + +USERNAME=andthensome +IMAGE=alpine-hugo-git-bash + +git pull + +# bump version +sudo docker run --rm -v "$PWD":/app treeder/bump patch +version=`cat VERSION` +echo "version: $version" + +# run build +./build.sh + +# tag it +git add -A +git commit -m "version $version" +git tag -a "$version" -m "version $version" +git push +git push --tags + +docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$version + +# push it +docker push $USERNAME/$IMAGE:latest +docker push $USERNAME/$IMAGE:$version