Commit 71af15d7 authored by D.M.S Senevirathna's avatar D.M.S Senevirathna

Update .gitlab-ci.yml

parent 5ad5ea19
...@@ -13,15 +13,28 @@ cache: ...@@ -13,15 +13,28 @@ cache:
paths: paths:
- node_modules/ - node_modules/
Test:
before_script:
- npm install
stage: test
script:
- npm test
tags:
- aws, clcloud, linux
Build: Build:
stage: build stage: build
script: script:
- npm install - npm build
tags: tags:
- aws, clcloud, linux - aws, clcloud, linux
DEV Deployment: DEV Deployment:
stage: deploy_dev stage: deploy_dev
environment:
name: development
url: https://example.com
when: manual
script: script:
- echo 'run dev deployment script' - echo 'run dev deployment script'
tags: tags:
...@@ -31,6 +44,10 @@ DEV Deployment: ...@@ -31,6 +44,10 @@ DEV Deployment:
QA Deployment: QA Deployment:
stage: deploy_qa stage: deploy_qa
environment:
name: development
url: https://example.com
when: manual
script: script:
- echo 'run qa deployment script' - echo 'run qa deployment script'
tags: tags:
...@@ -40,6 +57,10 @@ QA Deployment: ...@@ -40,6 +57,10 @@ QA Deployment:
STG Deployment: STG Deployment:
stage: deploy_stg stage: deploy_stg
environment:
name: development
url: https://example.com
when: manual
script: script:
- echo 'run dev deployment script' - echo 'run dev deployment script'
tags: tags:
...@@ -49,6 +70,10 @@ STG Deployment: ...@@ -49,6 +70,10 @@ STG Deployment:
PERF Deployment: PERF Deployment:
stage: deploy_perf stage: deploy_perf
environment:
name: development
url: https://example.com
when: manual
script: script:
- echo 'run dev deployment script' - echo 'run dev deployment script'
tags: tags:
...@@ -58,6 +83,10 @@ PERF Deployment: ...@@ -58,6 +83,10 @@ PERF Deployment:
PRD Deployment: PRD Deployment:
stage: deploy_prd stage: deploy_prd
environment:
name: development
url: https://example.com
when: manual
script: script:
- echo 'run prd deployment script' - echo 'run prd deployment script'
tags: tags:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment