From 1b61fc4262f4c347920a98bab1cd468b1b56c9e0 Mon Sep 17 00:00:00 2001 From: sean Date: Wed, 22 Jan 2025 22:30:23 -0800 Subject: [PATCH] remove gitlab cruft --- .gitlab-ci.yml | 52 -------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index d2bfc91..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,52 +0,0 @@ -image: node:22 - -default: - interruptible: true - -stages: - - build - - deploy - -build: - stage: build - before_script: - - yarn install --ignore-scripts - - apt-get update -y && apt-get install -y zip - script: - - yarn lint - - yarn i18n && git diff --quiet || (echo "Locale files are out of date. Please run `yarn i18n`" && exit 1) - - NODE_ENV=production yarn build - - cp dist/index.html dist/404.html - - cd dist && zip -r ../soapbox.zip . && cd .. - artifacts: - paths: - - soapbox.zip - -review: - stage: deploy - environment: - name: review/$CI_COMMIT_REF_NAME - url: https://$CI_COMMIT_REF_SLUG.git.soapbox.pub - before_script: - - apt-get update -y && apt-get install -y unzip - script: - - unzip soapbox.zip -d dist - - npx -y surge dist $CI_COMMIT_REF_SLUG.git.soapbox.pub - allow_failure: true - when: manual - -pages: - stage: deploy - before_script: - - apt-get update -y && apt-get install -y unzip - script: - # artifacts are kept between jobs - - unzip soapbox.zip -d public - variables: - NODE_ENV: production - artifacts: - paths: - - public - only: - variables: - - $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME \ No newline at end of file