Update dockerpublish.yml

This commit is contained in:
AkshayJagadish-ne
2021-08-13 14:15:46 -04:00
committed by GitHub
parent ced2cc88f4
commit 9c4b03ce6b

View File

@@ -63,7 +63,7 @@ jobs:
[[ "${{ github.ref }}" == "refs/heads/release/"* ]] && VERSION=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\/release\/[v]//' | awk '{print $1"-SNAPSHOT"}')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=1.2.0-SNAPSHOT
[ "$VERSION" == "master" ] && VERSION=1.3.0-SNAPSHOT
TIMESTAMP=$(date +'%Y-%m-%d')
echo date=$TIMESTAMP > commit.properties
@@ -97,7 +97,7 @@ jobs:
[[ "${{ github.ref }}" == "refs/heads/release/"* ]] && VERSION=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\/release\/[v]//' | awk '{print $1"-SNAPSHOT"}')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=1.2.0-SNAPSHOT
[ "$VERSION" == "master" ] && VERSION=1.3.0-SNAPSHOT
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION