7 Commits

Author SHA1 Message Date
Max Brenner
1f018cbd04 strip v character from tags 2021-03-03 19:00:56 +01:00
Max Brenner
bc57402aa9 enable docker push commands 2021-03-02 16:44:59 +01:00
Max Brenner
2692e6527f fix matching of optional v character 2021-03-02 16:35:49 +01:00
Max Brenner
f6d03b7a1b fix matching of optional v character 2021-03-02 16:20:55 +01:00
Max Brenner
3f1a85a9c0 adjust build for release branch 2021-03-02 16:04:53 +01:00
AkshayJagadish-ne
f1b0c54fc3 Merge pull request #89 from Telecominfraproject/WIFI-1669
WIFI:1669 TIP 1.0 Update SDK components  in release 1.0 branch
2021-02-27 22:02:31 -05:00
Akshay Jagadish
7659407562 WIFI:1669 TIP 1.0 Update SDK components and default container image tags in release 1.0 branch 2021-02-26 19:13:49 -05:00

View File

@@ -5,6 +5,7 @@ on:
# Publish `master` as Docker `latest` image.
branches:
- master
- 'release/**'
# Publish `v1.2.3` tags as releases.
tags:
@@ -56,8 +57,11 @@ jobs:
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Create a release snapshot if we are on release branch
[[ "${{ 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=0.0.1-SNAPSHOT
[ "$VERSION" == "master" ] && VERSION=1.0.0-SNAPSHOT
TIMESTAMP=$(date +'%Y-%m-%d')
@@ -88,8 +92,11 @@ jobs:
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Create a release snapshot if we are on release branch
[[ "${{ 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=0.0.1-SNAPSHOT
[ "$VERSION" == "master" ] && VERSION=1.0.0-SNAPSHOT
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION