1
0
mirror of https://github.com/alrayyes/docker-alpine-hugo-git-bash synced 2023-11-14 15:56:26 +00:00

version 0.26.2

This commit is contained in:
Ryan 2017-09-15 21:37:51 +02:00
parent 9f3963065d
commit 6f59b8bfc1
4 changed files with 35 additions and 0 deletions

View File

@ -1,5 +1,6 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Ryan Kes <ryan@andthensome.nl> MAINTAINER Ryan Kes <ryan@andthensome.nl>
ADD VERSION .
ENV HUGO_VERSION 0.26 ENV HUGO_VERSION 0.26
ENV HUGO_BINARY hugo_${HUGO_VERSION}_linux-64bit ENV HUGO_BINARY hugo_${HUGO_VERSION}_linux-64bit

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.26.2

6
build.sh Executable file
View File

@ -0,0 +1,6 @@
set -ex
USERNAME=andthensome
IMAGE=alpine-hugo-git-bash
sudo docker build -t $USERNAME/$IMAGE:latest .

27
release.sh Executable file
View File

@ -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