Drone: Fix publishing of next NPM packages (#27925)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-09-30 13:36:09 +02:00
committed by GitHub
parent b59be220ce
commit a59a89dfb8
7 changed files with 11 additions and 27 deletions
+1 -17
View File
@@ -64,23 +64,7 @@ else
for PACKAGE in "${PACKAGES[@]}"
do
start=$(date +%s%N)
yarn workspace @grafana/"${PACKAGE}" run build
runtime=$((($(date +%s%N) - start)/1000000))
if [ "${DRONE_BRANCH}" == "master" ]; then
exit_if_fail ./scripts/ci-metrics-publisher.sh "grafana.ci-buildtimes.${DRONE_STEP_NAME}.$PACKAGE=$runtime"
elif [ "${CIRCLE_BRANCH}" == "master" ]; then
exit_if_fail ./scripts/ci-metrics-publisher.sh "grafana.ci-buildtimes.${CIRCLE_JOB}.$PACKAGE=$runtime"
fi
exit_status=$?
if [ $exit_status -eq 0 ]; then
unpublish_previous_canary "$PACKAGE"
else
echo "Packages build failed, skipping canary release"
# TODO: notify on slack/email?
exit
fi
unpublish_previous_canary "$PACKAGE"
done
echo $'\nPublishing packages'
+1 -1
View File
@@ -3,7 +3,7 @@ publish_image = 'grafana/grafana-ci-deploy:1.2.6'
grafana_docker_image = 'grafana/drone-grafana-docker:0.3.2'
alpine_image = 'alpine:3.12'
windows_image = 'mcr.microsoft.com/windows:1809'
grabpl_version = '0.5.13'
grabpl_version = '0.5.14'
git_image = 'alpine/git:v2.26.2'
dockerize_version = '0.6.1'
wix_image = 'grafana/ci-wix:0.1.1'