ci(gitlab-ci): prod build
This commit is contained in:
parent
b9b45ed152
commit
1184d54ef1
@ -116,7 +116,7 @@ frontend:
|
|||||||
- artifact: frontend.yml
|
- artifact: frontend.yml
|
||||||
job: setup:dynamic
|
job: setup:dynamic
|
||||||
|
|
||||||
backend:
|
backend:dev: &backend
|
||||||
stage: backend
|
stage: backend
|
||||||
needs:
|
needs:
|
||||||
- setup:dynamic
|
- setup:dynamic
|
||||||
@ -129,6 +129,11 @@ backend:
|
|||||||
- artifact: backend.yml
|
- artifact: backend.yml
|
||||||
job: setup:dynamic
|
job: setup:dynamic
|
||||||
|
|
||||||
|
backend:prod:
|
||||||
|
<<: *backend
|
||||||
|
variables:
|
||||||
|
PROD_BUILD: -prod
|
||||||
|
|
||||||
|
|
||||||
# frontend dependencies:
|
# frontend dependencies:
|
||||||
# stage: setup
|
# stage: setup
|
||||||
|
|||||||
@ -15,7 +15,6 @@ variables:
|
|||||||
BACKEND_IMAGE_VERSION: #dyn#
|
BACKEND_IMAGE_VERSION: #dyn#
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- container
|
|
||||||
- compile
|
- compile
|
||||||
- lint
|
- lint
|
||||||
- test
|
- test
|
||||||
@ -35,11 +34,8 @@ default:
|
|||||||
|
|
||||||
compile:
|
compile:
|
||||||
stage: compile
|
stage: compile
|
||||||
needs:
|
|
||||||
- job: container
|
|
||||||
optional: true
|
|
||||||
script:
|
script:
|
||||||
- make -- backend-build
|
- make -- backend-build${PROD_BUILD}
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- /fradrive/.stack/
|
- /fradrive/.stack/
|
||||||
@ -48,19 +44,13 @@ compile:
|
|||||||
|
|
||||||
lint:
|
lint:
|
||||||
stage: lint
|
stage: lint
|
||||||
needs:
|
|
||||||
- job: container
|
|
||||||
optional: true
|
|
||||||
script:
|
script:
|
||||||
- make -- backend-lint
|
- make -- backend-lint${PROD_BUILD}
|
||||||
cache: *backend-cache
|
cache: *backend-cache
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
needs:
|
|
||||||
- job: container
|
|
||||||
optional: true
|
|
||||||
- compile
|
- compile
|
||||||
script:
|
script:
|
||||||
- make -- backend-test
|
- make -- backend-test${PROD_BUILD}
|
||||||
cache: *backend-cache
|
cache: *backend-cache
|
||||||
|
|||||||
Reference in New Issue
Block a user