Sha256: d9f8f54ac65cdee20976dd5804f60c1d437f8c9bee8f586b0af580ef811fbc9a

Contents?: true

Size: 518 Bytes

Versions: 6

Compression:

Stored size: 518 Bytes

Contents

#!/bin/sh

set -e # Exit immediately if anything below exits with non-zero status.

if
	[ $UFFIZZI_USER ] &&
	[ $UFFIZZI_HOSTNAME ] &&
	[ $UFFIZZI_PASSWORD ]
then
	uffizzi login --username "${UFFIZZI_USER}" --hostname "${UFFIZZI_HOSTNAME}"
	if [ $UFFIZZI_PROJECT ]
	then
		uffizzi config set project "${UFFIZZI_PROJECT}"
	fi
else
	echo "Specify environment variables to login before executing Uffizzi CLI."
	echo "UFFIZZI_USER, UFFIZZI_HOSTNAME, UFFIZZI_PASSWORD, and optionally UFFIZZI_PROJECT"
fi

exec uffizzi "$@"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
uffizzi-cli-0.3.7 docker-entrypoint.sh
uffizzi-cli-0.3.6 docker-entrypoint.sh
uffizzi-cli-0.3.5 docker-entrypoint.sh
uffizzi-cli-0.3.4 docker-entrypoint.sh
uffizzi-cli-0.3.3 docker-entrypoint.sh
uffizzi-cli-0.3.2 docker-entrypoint.sh