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:
parent
9f3963065d
commit
6f59b8bfc1
@ -1,5 +1,6 @@
|
||||
FROM alpine:latest
|
||||
MAINTAINER Ryan Kes <ryan@andthensome.nl>
|
||||
ADD VERSION .
|
||||
|
||||
ENV HUGO_VERSION 0.26
|
||||
ENV HUGO_BINARY hugo_${HUGO_VERSION}_linux-64bit
|
||||
|
6
build.sh
Executable file
6
build.sh
Executable 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
27
release.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user