After deploying a stable release, clean up the `next` tag

This commit is contained in:
Jérémie Astori 2018-02-20 00:59:47 -05:00
parent 288e8148fd
commit 4e63ef9764
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8
1 changed files with 6 additions and 0 deletions

View File

@ -45,3 +45,9 @@ deploy:
condition: "$BUILD_ENV = production" condition: "$BUILD_ENV = production"
tags: true tags: true
repo: thelounge/lounge repo: thelounge/lounge
# If the current release is a stable release, remove potential pre-release tag
after_deploy: |
if [ "$(npm_dist_tag)" == "latest" ]; then
npm dist-tag rm thelounge next || true
fi