Sha256: fbe6ddedb7c4c8788b4f55b34a04de4e18bfbc04e1ae65561c62f4e3b69c31bb

Contents?: true

Size: 690 Bytes

Versions: 118

Compression:

Stored size: 690 Bytes

Contents

#!/bin/bash -e

# Make sure we don't echo commands as executed, otherwise the user's
# Conjur API key will show up in the logs.
set +x

creds=( $(ruby /debify/distrib/conjur_creds.rb) )

# If there are creds, use them to log in to the registry.
#
# If there are no creds, any commands that do
# Docker stuff will fail, but the non-Docker commands (e.g. the config
# subcommands) will work fine.
if [[ ${#creds[*]} > 0 ]]; then
  echo -n "${creds[1]}" | docker login registry.tld -u ${creds[0]} --password-stdin >/dev/null 2>&1
fi

# Ensure the current working directory is considered safe by git in the debify
# container.
git config --global --add safe.directory "$PWD"

exec debify "$@"

Version data entries

118 entries across 118 versions & 1 rubygems

Version Path
conjur-debify-3.0.3.pre.248 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.216 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.145 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.10 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.9 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.2005 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1981 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1971 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1967 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1965 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1963 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1961 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1959 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1957 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1956 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1954 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1952 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1950 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1948 distrib/entrypoint.sh
conjur-debify-3.0.3.pre.1946 distrib/entrypoint.sh