Skip to content

Commit

Permalink
actions: dockerimage.yml (#3)
Browse files Browse the repository at this point in the history
Added build date to image tag to distinguish versions a bit better.
  • Loading branch information
vasilev authored Sep 1, 2020
1 parent b4b3872 commit 951374c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
echo VERSION=$VERSION
docker tag vasilev/nfs-ganesha vasilev/nfs-ganesha:$VERSION
docker push vasilev/nfs-ganesha:$VERSION
TAGGED_IMAGENAME="vasilev/nfs-ganesha:$VERSION--$(date -I)"
echo TAGGED_IMAGENAME=$TAGGED_IMAGENAME
docker tag vasilev/nfs-ganesha $TAGGED_IMAGENAME
docker push $TAGGED_IMAGENAME

0 comments on commit 951374c

Please sign in to comment.