From 1bbf639a45d13acf7852891e817b33b487c2c0dc Mon Sep 17 00:00:00 2001 From: sheenji <jiwonsheen@ajou.ac.kr> Date: Sun, 22 Dec 2024 04:42:43 +0900 Subject: [PATCH] add ci/cd --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a0be162 --- /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 -- GitLab