From 59d314a9564c2e1b5f486dc9e85127e596a991bf Mon Sep 17 00:00:00 2001 From: f Date: Sat, 15 Apr 2023 13:38:44 -0300 Subject: [PATCH] ci: deshabilitar gitlab ci por ahora --- .gitlab-ci.yml | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 7b83217e..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,36 +0,0 @@ -image: "gitea.nulo.in/sutty/panel:3.14.10-2.7.8-panel.sutty.nl" -variables: - RAILS_ENV: "production" - LC_ALL: "C.UTF-8" -cache: - paths: - - "vendor/ruby" - - "node_modules" -assets: - stage: "build" - rules: - - if: "$CI_COMMIT_BRANCH == \"panel.sutty.nl\"" - - if: "$CI_COMMIT_BRANCH" - changes: - compare_to: "refs/heads/rails" - paths: - - "package.json" - - "app/javascript/**/*" - - "app/assets/**/*" - before_script: - - "git config --global user.email \"${GIT_USER_EMAIL:-$GITLAB_USER_EMAIL}\"" - - "git config --global user.name \"${GIT_USER_NAME:-$GITLAB_USER_NAME}\"" - - "git remote set-url --push origin \"https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git\"" - - "apk add python2 dotenv brotli" - - "mv config/credentials.yml.enc.ci config/credentials.yml.enc" - - "cp .env.example .env" - - "dotenv bundle install --path=vendor" - - "yarn" - script: - - "dotenv RAILS_ENV=production bundle exec rails webpacker:clobber" - - "dotenv RAILS_ENV=production bundle exec rails assets:precompile" - - "dotenv RAILS_ENV=production bundle exec rails assets:clean" - - "git checkout -B ${CI_COMMIT_BRANCH}" - - "git add yarn.lock public && git commit -m \"ci: assets [skip ci]\"" - after_script: - - "git push -o ci.skip -u origin ${CI_COMMIT_BRANCH}"