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.1.pre.1825 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1824 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1823 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1820 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1818 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1816 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1815 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1813 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1811 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1809 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1807 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1805 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1803 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1801 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1799 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1797 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1795 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1793 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1791 distrib/entrypoint.sh
conjur-debify-3.0.1.pre.1789 distrib/entrypoint.sh