From 77da59bea2136e6b9e0185c6ff686e87c5cdc14d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 2 Jun 2021 22:55:13 +0000 Subject: [PATCH] Add GitLab CI config Doesn't deploy yet, let's get building working first --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..060d8ed --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +static: + image: node:alpine + stage: build + before_script: + - yarn install --cache-folder .yarn --prefer-offline --production --network-timeout 100000 + script: + - npm run release + artifacts: + name: '$CI_JOB_ID' + paths: + - ./public + expire_in: 30 mins + +deploy: + image: alpine + stage: deploy + dependencies: + - static + only: + - master + environment: + name: notes + url: https://notes.theorangeone.net + script: + - ls -alh ./public