Skip to content

Commit

Permalink
Update tagging method
Browse files Browse the repository at this point in the history
  • Loading branch information
chentex committed Aug 14, 2020
1 parent 458d71f commit c8c7d01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hooks/build
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash

export VERSION=$(cat hooks/VERSION)
export IMAGE_NAME="chentex/random-logger"

docker build --build-arg VCS_REF=`git rev-parse --short HEAD` \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
--build-arg VERSION=$VERSION \
-f Dockerfile -t chentex/random-logger:$VERSION .
-f Dockerfile -t $IMAGE_NAME:v$VERSION -t $IMAGE_NAME:latest .

0 comments on commit c8c7d01

Please sign in to comment.