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

Commit

Permalink
Merge pull request #198 from nhsuk/feature/tweaks
Browse files Browse the repository at this point in the history
Updates and stuff
  • Loading branch information
st3v3nhunt authored Aug 16, 2019
2 parents a5681c8 + 15c4aef commit c4dbb8b
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 155 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:10.16.0-alpine
FROM node:10.16.3-alpine

RUN apk add --no-cache python git-perl bash make gcc g++
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
"coveralls": "^3.0.0",
"destroy": "^1.0.4",
"eslint": "^6.0.1",
"eslint-config-airbnb": "^17.0.0",
"eslint-config-airbnb-base": "^13.0.0",
"eslint-config-airbnb": "^18.0.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-nhsuk": "^0.19.0",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-json": "^1.3.2",
Expand Down
7 changes: 3 additions & 4 deletions scripts/devops/check-performance-test-results
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
: "${PERF_TEST_AVG_RESPONSE_THRESHOLD:=600}"
: "${PERF_TEST_PCT_CHECK:=90}"
: "${PERF_TEST_PCT_THRESHOLD:=1000}"
export PERF_TEST_PCT_CHECK PERF_TEST_AVG_RESPONSE_THRESHOLD PERF_TEST_PCT_THRESHOLD
export PERF_TEST_AVG_RESPONSE_THRESHOLD="${PERF_TEST_AVG_RESPONSE_THRESHOLD:=600}"
export PERF_TEST_PCT_CHECK="${PERF_TEST_PCT_CHECK:=90}"
export PERF_TEST_PCT_THRESHOLD="${PERF_TEST_PCT_THRESHOLD:=1000}"

node ./scripts/devops/check-performance-test-results.js
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
Loading

0 comments on commit c4dbb8b

Please sign in to comment.