-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
image: node:10.16.3 | ||
|
||
# This folder is cached between builds | ||
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache | ||
#AWS access keys stored as secret variables | ||
|
||
variables: | ||
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID | ||
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY | ||
|
||
#This declares the pipeline stages | ||
stages: | ||
- test | ||
|
||
run-build: | ||
stage: test | ||
script: | ||
- cd src/frontend/ | ||
- npm install # Install all dependencies | ||
- npm run build | ||
- npm run webpack-build | ||
- buildthendeploy | ||
|
||
buildbuildthendeploy: | ||
stage: buildthendeploy | ||
script: | ||
- cd src/frontend/ | ||
- npm install | ||
- npm run build | ||
- apt update | ||
- apt -y install awscli | ||
- npm run-script deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters