We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9f3d7f commit 15f36dbCopy full SHA for 15f36db
.gitlab-ci.yml
@@ -1,17 +1,43 @@
1
stages:
2
- build
3
+ - test
4
- deploy
5
-build job:
6
+image: node:lts
7
+
8
+cache:
9
+ paths:
10
+ - node_modules
11
12
+build:
13
stage: build
- image: node:lts
14
script:
15
- yarn install
16
- yarn build
17
artifacts:
18
paths:
19
- build/
20
21
+test:
22
+ stage: test
23
+ script:
24
+ - yarn install
25
+ - yarn test
26
27
+deploy pre production:
28
+ stage: deploy
29
+ image: ruby
30
31
+ - apt-get update -qy
32
+ - apt-get install -y ruby-dev
33
+ - gem install dpl
34
+ - dpl --provider=heroku --app=$HEROKU_REPOSITORY --api-key=$HEROKU_ID
35
+ environment:
36
+ name: staging
37
+ url: https://secondhand-binar-staging.herokuapp.com/
38
+ only:
39
+ - staging
40
41
deploy production:
42
stage: deploy
43
image: node:lts
0 commit comments