Skip to content

Commit

Permalink
refactor: moving input variables to top level for definition
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlosjr97 committed Feb 20, 2024
1 parent 88dc202 commit 06915b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions release-it-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ GIT_DIRECTORY="${GIT_DIRECTORY:-}"
GIT_EMAIL="${GIT_EMAIL:-}"
GIT_REPOSITORY="${GIT_REPOSITORY:-}"
GIT_USERNAME="${GIT_USERNAME:-}"
GPG_PRIVATE_KEY_ID="${GPG_PRIVATE_KEY_ID:-}"
GPG_PRIVATE_KEY="${GPG_PRIVATE_KEY:-}"
GPG_PRIVATE_KEY_ID="${GPG_PRIVATE_KEY_ID:-}"
RELEASE_IT_PLUGINS=${RELEASE_IT_PLUGINS:-}
RELEASE_IT_VERSION=${RELEASE_IT_VERSION:-latest}
SSH_PASSPHRASE="${SSH_PASSPHRASE:-}"
SSH_PRIVATE_KEY="${SSH_PRIVATE_KEY:-}"

Expand Down Expand Up @@ -80,9 +81,6 @@ else
echo "SSH_PRIVATE_KEY is not provided. SSH setup skipped"
fi

# Set RELEASE_IT_VERSION default value if not provided
RELEASE_IT_VERSION=${RELEASE_IT_VERSION:-latest}

# Configure NPM global settings
# Adjust the global directory for NPM to a location with full permissions for the node user, set during the image build
NPM_GLOBAL_DIR=/home/node/.npm-global
Expand Down

0 comments on commit 06915b1

Please sign in to comment.