-
Notifications
You must be signed in to change notification settings - Fork 9
/
build
executable file
·34 lines (28 loc) · 1.03 KB
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
set -e
set -u
set -o pipefail
################################################################################
# Build the Docker image.
# Invoke as "ci/build".
################################################################################
. ci/helpers.sh
# The version of openssl that we get from https://testssl.sh
export TARBALL="openssl-1.0.2k-chacha.pm.ipv6.Linux+FreeBSD.201705.tar.gz"
# Branches from https://github.com/drwetter/testssl.sh
export STABLE_BRANCH=3.0
export DEV_BRANCH=3.1dev
# You probably do not need to touch these.
cat >ci/vars <<-EOF
# shellcheck shell=bash
declare -rx TARBALL=${TARBALL}
declare -rx STABLE_BRANCH=${STABLE_BRANCH}
declare -rx DEV_BRANCH=${DEV_BRANCH}
declare -rx BUILD_DATE=$(date +%Y%m%dT%H%M)
declare -rx CI_BUILD_URL=${CIRCLE_BUILD_URL:-}
declare -rx VCS_REF=$(git rev-parse --short HEAD)
declare -rx STABLE_TAG=\${STABLE_BRANCH}-\${BUILD_DATE}-git-\${VCS_REF}
declare -rx DEV_TAG=\${DEV_BRANCH}-\${BUILD_DATE}-git-\${VCS_REF}
EOF
. ci/vars
docker-compose -f docker-compose.ci.yaml build