chore(gitlab-ci): run profiling build automatically
This commit is contained in:
parent
09ce1bb035
commit
879e7123e8
@ -51,7 +51,7 @@ npm install:
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules/
|
||||
name: "${CI_JOB_NAME}"
|
||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
||||
expire_in: "1 day"
|
||||
retry: 2
|
||||
interruptible: true
|
||||
@ -68,7 +68,7 @@ frontend:build:
|
||||
- static
|
||||
- well-known
|
||||
- config/webpack.yml
|
||||
name: "${CI_JOB_NAME}"
|
||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
||||
expire_in: "1 day"
|
||||
dependencies:
|
||||
- npm install
|
||||
@ -112,14 +112,17 @@ yesod:build:dev:
|
||||
artifacts:
|
||||
paths:
|
||||
- bin/
|
||||
name: "${CI_JOB_NAME}"
|
||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
||||
expire_in: "1 week"
|
||||
dependencies:
|
||||
- frontend:build
|
||||
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_NAME !~ /^v[0-9].*/
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME !~ /^v[0-9].*/
|
||||
when: always
|
||||
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9].*/
|
||||
when: manual
|
||||
|
||||
retry: 2
|
||||
interruptible: true
|
||||
|
||||
@ -135,13 +138,16 @@ yesod:build:
|
||||
artifacts:
|
||||
paths:
|
||||
- bin/
|
||||
name: "${CI_JOB_NAME}"
|
||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
||||
dependencies:
|
||||
- frontend:build
|
||||
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_NAME =~ /^v[0-9].*/
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9].*/
|
||||
when: always
|
||||
- if: $CI_COMMIT_REF_NAME !~ /^v[0-9].*/
|
||||
when: manual
|
||||
|
||||
retry: 2
|
||||
interruptible: true
|
||||
resource_group: ram
|
||||
@ -151,8 +157,6 @@ yesod:build:profile:
|
||||
<<: *global_cache
|
||||
policy: pull
|
||||
|
||||
services: *build-services
|
||||
|
||||
stage: yesod:build
|
||||
script:
|
||||
- stack build --profile --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --no-strip
|
||||
@ -162,11 +166,15 @@ yesod:build:profile:
|
||||
artifacts:
|
||||
paths:
|
||||
- bin/
|
||||
name: "${CI_JOB_NAME}"
|
||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
||||
dependencies:
|
||||
- frontend:build
|
||||
|
||||
when: manual
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME =~ /(^|\/)profile($|\/)/
|
||||
when: always
|
||||
- if: $CI_COMMIT_REF_NAME !~ /(^|\/)profile($|\/)/
|
||||
when: manual
|
||||
|
||||
retry: 2
|
||||
interruptible: true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user