2018-06-22 17:25:27 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Install curl and lua
|
|
|
|
apt-get update -qq && \
|
2018-06-22 18:11:16 +02:00
|
|
|
apt-get install -qq curl git lua5.2 openssl
|
2018-06-22 17:25:27 +02:00
|
|
|
|
|
|
|
# Check if build is not tagged
|
|
|
|
if [ "${CI_COMMIT_TAG}" == "" ]; then
|
|
|
|
export EXECUTABLE_TAG=-$(git rev-parse --short HEAD)
|
|
|
|
else
|
|
|
|
export EXECUTABLE_TAG=
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check if package code is not set
|
|
|
|
if [ "${PACKAGE_CODE}" == "" ]; then
|
|
|
|
export PACKAGE_CODE=GitLab
|
|
|
|
fi
|
|
|
|
|
|
|
|
.ci/ci.sh
|