diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cd22071..4d5868d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ image: node:latest stages: - build - test + - deploy merge:build: stage: build @@ -33,6 +34,9 @@ build: - echo "Run build project" - npm install - npm run build + only: + - develop + - main artifacts: paths: - node_modules @@ -42,6 +46,16 @@ test: script: - echo "Run test project" - npm run test + only: + - develop + - main artifacts: paths: - - node_modules \ No newline at end of file + - node_modules + +deploy: + stage: deploy + script: + - echo "Run deploy project" + only: + - main \ No newline at end of file