Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
9ea31e07
Commit
9ea31e07
authored
Jan 17, 2018
by
Nicholas J Anderson
Browse files
Accept build variable to change the API base URL.
parent
32909fee
Pipeline
#1990
failed with stage
in 1 minute and 36 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
9ea31e07
...
@@ -3,13 +3,13 @@ image: node:6.5.0
...
@@ -3,13 +3,13 @@ image: node:6.5.0
build
:
build
:
stage
:
build
stage
:
build
variables
:
variables
:
HOMEPAGE
:
"
https://cefaoycoympc.srct.gmu.edu
/"
API_GET_FACILITIES
:
"
https://api.srct.gmu.edu/whatsopen/v2/facilities
/"
script
:
script
:
-
npm install -g yarn
-
npm install -g yarn
-
>
-
>
node -e "require('fs').writeFileSync('./package.json', JSON.stringify(Object.assign(require('./package.json'), {'homepage': process.env.HOMEPAGE}), null, 2));"
sed "s|^const API_GET_FACILITIES .*|const API_GET_FACILITIES = '$API_GET_FACILITIES';|" src/actions/api.js
-
yarn install
-
yarn install
-
CI=false
npm run build
-
npm run build
artifacts
:
artifacts
:
paths
:
paths
:
-
build
-
build
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment