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

fixed build vcs_ref & added buttons to readme

This commit is contained in:
Ryan 2017-09-16 01:36:57 +02:00
parent bf936b20d9
commit cf2f8e136f
2 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,13 @@
[![](https://images.microbadger.com/badges/image/andthensome/alpine-hugo-git-bash.svg)](http://microbadger.com/images/andthensome/alpine-hugo-git-bash "Get your own image badge on microbadger.com") [![](https://images.microbadger.com/badges/version/andthensome/alpine-hugo-git-bash.svg)](http://microbadger.com/images/andthensome/alpine-hugo-git-bash "Get your own version badge on microbadger.com") [![Build Status](https://travis-ci.org/alrayyes/docker-alpine-hugo-git-bash.svg?branch=master)](https://travis-ci.org/alrayyes/docker-alpine-hugo-git-bash)
# Docker Alpine Hugo Git Bash
## Docker Image
[![](https://images.microbadger.com/badges/image/andthensome/alpine-hugo-git-bash.svg)](http://microbadger.com/images/andthensome/alpine-hugo-git-bash "Get your own image badge on microbadger.com") [![](https://images.microbadger.com/badges/version/andthensome/alpine-hugo-git-bash.svg)](http://microbadger.com/images/andthensome/alpine-hugo-git-bash "Get your own version badge on microbadger.com") [![](https://images.microbadger.com/badges/commit/andthensome/alpine-hugo-git-bash.svg)](https://microbadger.com/images/andthensome/alpine-hugo-git-bash "Get your own commit badge on microbadger.com")
## Build
[![Build Status](https://travis-ci.org/alrayyes/docker-alpine-hugo-git-bash.svg)](https://travis-ci.org/alrayyes/docker-alpine-hugo-git-bash)
Minimal container with [Hugo](https://gohugo.io), Git & Bash installed. Built to be used with [wercker](http://wercker.com/). Leverages [alpine](https://hub.docker.com/_/alpine/) base image.
## Usage

View File

@ -2,7 +2,7 @@
# $IMAGE_NAME var is injected into the build so the tag is correct.
docker build --build-arg VCS_REF=`git rev-parse —short HEAD` \
docker build --build-arg VCS_REF=`git rev-parse —-short HEAD` \
--build-arg VCS_URL=`git config --get remote.origin.url` \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
-t $IMAGE_NAME .