Skip to content

Commit

Permalink
Preparo deployment para staging
Browse files Browse the repository at this point in the history
    refs:#137
  • Loading branch information
leandro-gomez committed Jan 9, 2018
1 parent bc49d8c commit 9311a6b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/deploy/variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ if [ "$ENVIRONMENT" == "testing" ]; then
export DEPLOY_TARGET_IP="$TESTING_DEPLOY_TARGET_IP"
export DEPLOY_ENVIRONMENT="$ENVIRONMENT"
export DEPLOY_REVISION="master"
elif [ "$ENVIRONMENT" == "staging" ]; then
#export vault_key_var_name=""
#export vault_iv_var_name=""

#export ssh_key_var_name=""
#export ssh_iv_var_name=""

# Las siguientes variables son de conexion ssh
export DEPLOY_TARGET_SSH_PORT="$STAGING_DEPLOY_TARGET_SSH_PORT"
export DEPLOY_TARGET_USERNAME="$STAGING_DEPLOY_TARGET_USERNAME"
export DEPLOY_TARGET_IP="$STAGING_DEPLOY_TARGET_IP"
export DEPLOY_ENVIRONMENT="$ENVIRONMENT"
export DEPLOY_REVISION="${TRAVIS_TAG:-$TRAVIS_COMMIT}" # Desde el tag o el hash del commit
else
echo "Ambiente '$ENVIRONMENT' desconocido";
exit 1;
Expand Down

0 comments on commit 9311a6b

Please sign in to comment.