diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..a0be162e9ca4fe78b9440a3cb5ed3e8cc759b17b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +stages: + - deploy + +deploy-worker: + image: node:lts + stage: deploy + environment: production + before_script: + # install dependencies + - cd kv-tutorial + - npm ci + script: + - npm run deploy + rules: + # This rule triggers this job after any push to the default branch + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH