mirror of
https://github.com/Telecominfraproject/wlan-cloud-graphql-gw.git
synced 2026-03-22 11:39:18 +00:00
Compare commits
4 Commits
master
...
v1.0.0-rc1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e461dadb1 | ||
|
|
763485a26a | ||
|
|
75ac653569 | ||
|
|
edea4dc1cd |
13
.github/workflows/dockerpublish.yml
vendored
13
.github/workflows/dockerpublish.yml
vendored
@@ -5,6 +5,7 @@ on:
|
||||
# Publish `master` as Docker `latest` image.
|
||||
branches:
|
||||
- master
|
||||
- 'release/**'
|
||||
|
||||
# Publish `v1.2.3` tags as releases.
|
||||
tags:
|
||||
@@ -58,8 +59,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')
|
||||
echo date=$TIMESTAMP > commit.properties
|
||||
@@ -89,8 +93,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
|
||||
@@ -100,4 +107,4 @@ jobs:
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
|
||||
docker tag image $IMAGE_ID:$VERSION-$TIMESTAMP
|
||||
docker push $IMAGE_ID:$VERSION-$TIMESTAMP
|
||||
docker push $IMAGE_ID:$VERSION-$TIMESTAMP
|
||||
|
||||
Reference in New Issue
Block a user