chore(gitlab-ci): cleanup and deduplicate stuff
This commit is contained in:
parent
46a46b9b13
commit
8306bc20e9
@ -16,7 +16,7 @@ variables:
|
|||||||
TRANSFER_METER_FREQUENCY: "2s"
|
TRANSFER_METER_FREQUENCY: "2s"
|
||||||
|
|
||||||
# docker
|
# docker
|
||||||
ENV_USER: "fradrive-env"
|
ENV_USER: fradrive-env
|
||||||
|
|
||||||
# backend
|
# backend
|
||||||
STACK_ROOT: "${CI_PROJECT_DIR}/.stack"
|
STACK_ROOT: "${CI_PROJECT_DIR}/.stack"
|
||||||
@ -31,6 +31,11 @@ default:
|
|||||||
user: ${ENV_USER}
|
user: ${ENV_USER}
|
||||||
before_script:
|
before_script:
|
||||||
- chown -R ${ENV_USER} . # change project directory ownership to (non-root) user inside docker container
|
- chown -R ${ENV_USER} . # change project directory ownership to (non-root) user inside docker container
|
||||||
|
artifacts:
|
||||||
|
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
||||||
|
expire_in: "1 day"
|
||||||
|
retry: 2
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
@ -43,26 +48,19 @@ stages:
|
|||||||
- release
|
- release
|
||||||
|
|
||||||
|
|
||||||
# TODO: rename to "frontend dependencies"
|
|
||||||
frontend dependencies:
|
frontend dependencies:
|
||||||
stage: setup
|
stage: setup
|
||||||
cache:
|
cache:
|
||||||
- &npm-cache
|
- &npm-cache
|
||||||
key: default-npm
|
key: default-npm
|
||||||
paths:
|
paths: &npm-paths
|
||||||
- .npm
|
- node_modules/
|
||||||
- node_modules
|
- .npm/
|
||||||
|
- .npmrc
|
||||||
script:
|
script:
|
||||||
- make node_modules
|
- make node_modules
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths: *npm-paths
|
||||||
- node_modules/
|
|
||||||
- .npm/
|
|
||||||
- .npmrc
|
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
|
||||||
expire_in: "1 day"
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
well-known:
|
well-known:
|
||||||
stage: setup
|
stage: setup
|
||||||
@ -80,10 +78,6 @@ well-known:
|
|||||||
paths:
|
paths:
|
||||||
- well-known/
|
- well-known/
|
||||||
- .well-known-cache/
|
- .well-known-cache/
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
|
||||||
expire_in: "1 day"
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
backend dependencies:
|
backend dependencies:
|
||||||
stage: setup
|
stage: setup
|
||||||
@ -97,11 +91,6 @@ backend dependencies:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- .stack
|
- .stack
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
|
||||||
expire_in: "1 day"
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
|
|
||||||
frontend lint:
|
frontend lint:
|
||||||
stage: lint
|
stage: lint
|
||||||
@ -114,8 +103,6 @@ frontend lint:
|
|||||||
artifacts: true
|
artifacts: true
|
||||||
- job: well-known
|
- job: well-known
|
||||||
artifacts: true
|
artifacts: true
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
backend lint:
|
backend lint:
|
||||||
stage: lint
|
stage: lint
|
||||||
@ -126,9 +113,6 @@ backend lint:
|
|||||||
needs:
|
needs:
|
||||||
- job: backend dependencies
|
- job: backend dependencies
|
||||||
artifacts: true
|
artifacts: true
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
|
|
||||||
frontend build:
|
frontend build:
|
||||||
stage: build
|
stage: build
|
||||||
@ -147,10 +131,6 @@ frontend build:
|
|||||||
paths:
|
paths:
|
||||||
- static/
|
- static/
|
||||||
- config/webpack.yml
|
- config/webpack.yml
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
|
||||||
expire_in: "1 day"
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
# TODO rename to uniworx?
|
# TODO rename to uniworx?
|
||||||
backend build:
|
backend build:
|
||||||
@ -177,10 +157,6 @@ backend build:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- bin/
|
- bin/
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
|
||||||
expire_in: "1 day"
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
resource_group: ram
|
resource_group: ram
|
||||||
|
|
||||||
uniworxdb:
|
uniworxdb:
|
||||||
@ -195,10 +171,6 @@ uniworxdb:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- bin/uniworxdb
|
- bin/uniworxdb
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
|
||||||
expire_in: "1 day"
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
uniworx:exe:uniworxload:
|
uniworx:exe:uniworxload:
|
||||||
stage: build
|
stage: build
|
||||||
@ -214,11 +186,6 @@ uniworx:exe:uniworxload:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- uniworx:exe:uniworxload.nar.xz
|
- uniworx:exe:uniworxload.nar.xz
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
|
||||||
expire_in: "1 day"
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
|
|
||||||
# check:
|
# check:
|
||||||
# stage: test
|
# stage: test
|
||||||
@ -231,8 +198,6 @@ uniworx:exe:uniworxload:
|
|||||||
# artifacts: false
|
# artifacts: false
|
||||||
# - job: frontend build
|
# - job: frontend build
|
||||||
# artifacts: true
|
# artifacts: true
|
||||||
# retry: 2
|
|
||||||
# interruptible: true
|
|
||||||
|
|
||||||
frontend test:
|
frontend test:
|
||||||
stage: test
|
stage: test
|
||||||
@ -242,8 +207,6 @@ frontend test:
|
|||||||
needs:
|
needs:
|
||||||
- job: frontend dependencies
|
- job: frontend dependencies
|
||||||
artifacts: true
|
artifacts: true
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
backend test:
|
backend test:
|
||||||
stage: test
|
stage: test
|
||||||
@ -253,9 +216,6 @@ backend test:
|
|||||||
needs:
|
needs:
|
||||||
- job: backend dependencies
|
- job: backend dependencies
|
||||||
artifacts: true
|
artifacts: true
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
|
|
||||||
container:
|
container:
|
||||||
stage: container
|
stage: container
|
||||||
@ -274,10 +234,6 @@ container:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- uniworx.tar.gz
|
- uniworx.tar.gz
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
|
||||||
expire_in: "1 day"
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
rules: &release-rules
|
rules: &release-rules
|
||||||
- if: $CI_COMMIT_TAG =~ /^v/
|
- if: $CI_COMMIT_TAG =~ /^v/
|
||||||
test container:
|
test container:
|
||||||
@ -297,10 +253,6 @@ test container:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- uniworx.tar.gz
|
- uniworx.tar.gz
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
|
||||||
expire_in: "1 day"
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
rules: &test-release-rules
|
rules: &test-release-rules
|
||||||
- if: $CI_COMMIT_TAG =~ /^t/
|
- if: $CI_COMMIT_TAG =~ /^t/
|
||||||
|
|
||||||
@ -323,8 +275,6 @@ parse changelog:
|
|||||||
- .current-changelog.md
|
- .current-changelog.md
|
||||||
name: "changelog-${CI_COMMIT_SHORT_SHA}"
|
name: "changelog-${CI_COMMIT_SHORT_SHA}"
|
||||||
expire_in: "1 day"
|
expire_in: "1 day"
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
parse test changelog:
|
parse test changelog:
|
||||||
stage: prepare release
|
stage: prepare release
|
||||||
needs:
|
needs:
|
||||||
@ -343,9 +293,6 @@ parse test changelog:
|
|||||||
- .current-version
|
- .current-version
|
||||||
- .current-changelog.md
|
- .current-changelog.md
|
||||||
name: "changelog-${CI_COMMIT_SHORT_SHA}"
|
name: "changelog-${CI_COMMIT_SHORT_SHA}"
|
||||||
expire_in: "1 day"
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
upload container:
|
upload container:
|
||||||
variables:
|
variables:
|
||||||
@ -369,7 +316,6 @@ upload container:
|
|||||||
- job: backend test # sanity
|
- job: backend test # sanity
|
||||||
artifacts: false
|
artifacts: false
|
||||||
rules: *release-rules
|
rules: *release-rules
|
||||||
retry: 2
|
|
||||||
upload test container:
|
upload test container:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
@ -392,7 +338,6 @@ upload test container:
|
|||||||
- job: backend test # sanity
|
- job: backend test # sanity
|
||||||
artifacts: false
|
artifacts: false
|
||||||
rules: *test-release-rules
|
rules: *test-release-rules
|
||||||
retry: 2
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
variables:
|
variables:
|
||||||
@ -413,6 +358,7 @@ release:
|
|||||||
artifacts: false
|
artifacts: false
|
||||||
- job: parse changelog
|
- job: parse changelog
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
retry: 0
|
||||||
test release:
|
test release:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
@ -432,3 +378,4 @@ test release:
|
|||||||
artifacts: false
|
artifacts: false
|
||||||
- job: parse test changelog
|
- job: parse test changelog
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
retry: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user