devops: force set current tag to v1.10.0 to push docker release (#368)

This commit is contained in:
Yury Semikhatsky 2021-03-25 13:27:21 -07:00 committed by GitHub
parent af1bf963dc
commit 2ffca6a0b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,9 +26,10 @@ jobs:
# GITHUB_REF has a form of `refs/tags/v1.3.0`.
# TAG_NAME would be `v1.3.0`
TAG_NAME=${GITHUB_REF#refs/tags/}
if [[ -z "$TAG_NAME" ]];
TAG_NAME=v1.10.0
if [[ ! "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]];
then
echo "TAG_NAME is empty"
echo "Wrong TAG_NAME format: $TAG_NAME"
exit 1
fi
./scripts/tag_image_and_push.sh playwright-java:localbuild-focal playwright.azurecr.io/public/playwright/java:latest