1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00

Closed #115 add commit id

This commit is contained in:
Hai Liang Wang 2018-10-23 21:12:34 +08:00
parent 9769e501c8
commit 97ac1ce890
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,11 @@
FROM chatopera/java:1.0.0
MAINTAINER Hai Liang Wang <hain@chatopera.com>
ARG VCS_REF
LABEL org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/chatopera/cosin"
# Set timezone
RUN apt-get update && \
apt-get install --no-install-recommends -y tzdata && \

View File

@ -13,8 +13,7 @@ PACKAGE_VERSION=1.0.0
# main
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
cd $appHome
set -x
docker build --force-rm=true --tag $imagename:$PACKAGE_VERSION .
cd $appHome
docker build --build-arg VCS_REF=`git rev-parse --short HEAD` --force-rm=true --tag $imagename:$PACKAGE_VERSION .
docker tag $imagename:$PACKAGE_VERSION $imagename:develop