Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
🔨 Fix routing for review environment
Browse files Browse the repository at this point in the history
  • Loading branch information
st3v3nhunt committed Aug 16, 2019
1 parent f5f1d76 commit 15c4aef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scripts/devops/get-vault-variables
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
#!/bin/bash

RANCHER_STACK_NAME=$PROJECT_NAME
if [ -n "$PRID" ]; then
RANCHER_STACK_NAME="$RANCHER_STACK_NAME-pr-$PRID"
fi
# Set some defaults
{
echo "RANCHER_STACK_NAME=$RANCHER_STACK_NAME"
echo "TRAEFIK_DOMAIN=nhswebsite-integration.nhs.uk"
} >> answers.txt

get_vault_data() {
VAULT_PATH="$1"

Expand Down
8 changes: 8 additions & 0 deletions scripts/devops/set-branch-variables
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ TAG=$(echo "$CLEANED_SOURCEBRANCH" | sed -E -n -e's:^refs-tags-(.+)$:\1:p')
echo "TAG: $TAG"
echo "##vso[task.setvariable variable=TAG]$TAG"

RANCHER_STACK_NAME=$PROJECT_NAME
if [ -n "$PRID" ]; then
RANCHER_STACK_NAME="$RANCHER_STACK_NAME-pr-$PRID"
fi

# Set some defaults
{
echo "RANCHER_STACK_NAME=$RANCHER_STACK_NAME"
echo "TRAEFIK_DOMAIN=nhswebsite-integration.nhs.uk"
echo "BRANCH=$BRANCH"
echo "PRID=$PRID"
echo "TAG=$TAG"
Expand Down

0 comments on commit 15c4aef

Please sign in to comment.