Commit 4adfa8f8 authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Be very strict about tags

parent 0cb50289
if [[ -n "$ARTIFACTS_S3_BUCKET" ]]; then
make s3-upload "S3_UPLOAD_PATH=$CI_BUILD_REF_NAME"
fi
if [[ "$RELEASE" == "true" ]]; then
if ! [[ $CI_BUILD_REF_NAME == v*.* ]] ; then
echo "FATALITY: Don't dare me to push tags without v*..."
exit 1
fi
if [[ -n "$ARTIFACTS_S3_BUCKET" ]]; then
make s3-upload "S3_UPLOAD_PATH=latest"
make s3-upload "S3_UPLOAD_PATH=$CI_BUILD_REF_NAME"
fi
make packagecloud
else
if [[ -n "$ARTIFACTS_S3_BUCKET" ]]; then
make s3-upload "S3_UPLOAD_PATH=latest"
fi
make packagecloud
make s3-upload "S3_UPLOAD_PATH=$CI_BUILD_REF_NAME"
fi
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment