GitLab CI: make jobs interruptible by default

This commit is contained in:
Alex Gleason 2022-12-30 11:39:08 -06:00
parent 178c41b3c3
commit 7c46c8da52
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -3,6 +3,9 @@ image: node:18
variables: variables:
NODE_ENV: test NODE_ENV: test
default:
interruptible: true
cache: &cache cache: &cache
key: key:
files: files:
@ -25,7 +28,6 @@ deps:
cache: cache:
<<: *cache <<: *cache
policy: push policy: push
interruptible: true
danger: danger:
stage: test stage: test
@ -37,7 +39,6 @@ danger:
refs: refs:
- $CI_DEFAULT_BRANCH - $CI_DEFAULT_BRANCH
allow_failure: true allow_failure: true
interruptible: true
lint-js: lint-js:
stage: test stage: test
@ -50,7 +51,6 @@ lint-js:
- "**/*.tsx" - "**/*.tsx"
- ".eslintignore" - ".eslintignore"
- ".eslintrc.js" - ".eslintrc.js"
interruptible: true
lint-sass: lint-sass:
stage: test stage: test
@ -60,7 +60,6 @@ lint-sass:
- "**/*.scss" - "**/*.scss"
- "**/*.css" - "**/*.css"
- ".stylelintrc.json" - ".stylelintrc.json"
interruptible: true
jest: jest:
stage: test stage: test
@ -83,7 +82,6 @@ jest:
coverage_report: coverage_report:
coverage_format: cobertura coverage_format: cobertura
path: .coverage/cobertura-coverage.xml path: .coverage/cobertura-coverage.xml
interruptible: true
nginx-test: nginx-test:
stage: test stage: test
@ -94,7 +92,6 @@ nginx-test:
only: only:
changes: changes:
- "installation/mastodon.conf" - "installation/mastodon.conf"
interruptible: true
build-production: build-production:
stage: test stage: test
@ -109,7 +106,6 @@ build-production:
artifacts: artifacts:
paths: paths:
- static - static
interruptible: true
docs-deploy: docs-deploy:
stage: deploy stage: deploy
@ -123,7 +119,6 @@ docs-deploy:
- $CI_DEFAULT_BRANCH - $CI_DEFAULT_BRANCH
changes: changes:
- "docs/**/*" - "docs/**/*"
interruptible: true
review: review:
stage: deploy stage: deploy
@ -133,7 +128,6 @@ review:
script: script:
- npx -y surge static $CI_COMMIT_REF_SLUG.git.soapbox.pub - npx -y surge static $CI_COMMIT_REF_SLUG.git.soapbox.pub
allow_failure: true allow_failure: true
interruptible: true
pages: pages:
stage: deploy stage: deploy
@ -149,7 +143,6 @@ pages:
only: only:
refs: refs:
- $CI_DEFAULT_BRANCH - $CI_DEFAULT_BRANCH
interruptible: true
docker: docker:
stage: deploy stage: deploy
@ -166,14 +159,7 @@ docker:
only: only:
refs: refs:
- $CI_DEFAULT_BRANCH - $CI_DEFAULT_BRANCH
interruptible: true
include: include:
- template: Jobs/Dependency-Scanning.gitlab-ci.yml - template: Jobs/Dependency-Scanning.gitlab-ci.yml
- template: Security/License-Scanning.gitlab-ci.yml - template: Security/License-Scanning.gitlab-ci.yml
gemnasium-dependency_scanning:
interruptible: true
license_scanning:
interruptible: true