Skip to content

Commit

Permalink
Script Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmanuelthiel committed Nov 2, 2021
1 parent bbc6b22 commit 1e90944
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,23 @@ else
fi

# Compare current branch with environments
if [[ "$currentBranch" == "$DEV_BRANCH" ]]; then
if [[ "$branchName" == "$DEV_BRANCH" ]]; then
environment=dev
exactMatch=true
domainPrefix=$DEV_DOMAIN_PREFIX
slug=dev
elif [[ "$currentBranch" == "$STAGING_BRANCH" ]]; then
elif [[ "$branchName" == "$STAGING_BRANCH" ]]; then
environment=staging
exactMatch=true
domainPrefix=$STAGING_DOMAIN_PREFIX
slug=staging
elif [[ "$currentBranch" == "$PROD_BRANCH" ]]; then
elif [[ "$branchName" == "$PROD_BRANCH" ]]; then
environment=prod
exactMatch=true
domainPrefix=$PROD_DOMAIN_PREFIX
slug=prod
elif [[ "$isPullRequest" == "true" ]]; then
if [[ "$IS_CUSTOM_ENVIRONMENT" == "true" ]]; then
if [[ "$isCustomEnvironment" == "true" ]]; then
environment=pr${GITHUB_EVENT_PULL_REQUEST_NUMBER}
else
environment=$PR_ENVIRONMENT
Expand Down

0 comments on commit 1e90944

Please sign in to comment.