blob: 1d1f3293fe3eeb69a463cd8c064cdba8dfadd103 (
plain)
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
|
#!/bin/bash
# Builds and pushes SNAPSHOT versions of Portal images
# be verbose
set -x
# Establish environment variables
source $(dirname $0)/.env
if [ $1 ]; then
source $(dirname $0)/$1
fi
if [ -z "$PORTAL_VERSION" ]; then
echo "PORTAL_VERSION not set"
exit 1
fi
TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
# commenting the following two configurations as lf team preferred the uncommented format below
#export VERSION="${PORTAL_VERSION}-${TIMESTAMP}"
#export LATEST="latest"
export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}"
export LATEST="${PORTAL_VERSION}-STAGING-latest"
./os_docker_base.sh $1
|