mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-10-30 02:12:39 +00:00
Subtask WIFI-913
This commit is contained in:
committed by
GitHub
parent
64096d040d
commit
6dbaddc021
4
.github/workflows/dockerpublish.yml
vendored
4
.github/workflows/dockerpublish.yml
vendored
@@ -48,13 +48,15 @@ jobs:
|
||||
run: |
|
||||
# Strip git ref prefix from version
|
||||
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//')
|
||||
|
||||
# Use Docker `latest` tag convention
|
||||
[ "$VERSION" == "master" ] && VERSION=latest
|
||||
|
||||
TIMESTAMP=$(date +'%Y-%m-%d')
|
||||
|
||||
echo date=$TIMESTAMP > app/commit.properties
|
||||
echo commitId=$GITHUB_SHA >> app/commit.properties
|
||||
echo projectVersion=$VERSION>> app/commit.properties
|
||||
|
||||
Reference in New Issue
Block a user