ci(gitlab-ci): prod build

This commit is contained in:
Sarah Vaupel 2024-08-25 06:22:53 +02:00
parent b9b45ed152
commit 1184d54ef1
2 changed files with 9 additions and 14 deletions

View File

@ -116,7 +116,7 @@ frontend:
- artifact: frontend.yml
job: setup:dynamic
backend:
backend:dev: &backend
stage: backend
needs:
- setup:dynamic
@ -129,6 +129,11 @@ backend:
- artifact: backend.yml
job: setup:dynamic
backend:prod:
<<: *backend
variables:
PROD_BUILD: -prod
# frontend dependencies:
# stage: setup

View File

@ -15,7 +15,6 @@ variables:
BACKEND_IMAGE_VERSION: #dyn#
stages:
- container
- compile
- lint
- test
@ -35,11 +34,8 @@ default:
compile:
stage: compile
needs:
- job: container
optional: true
script:
- make -- backend-build
- make -- backend-build${PROD_BUILD}
artifacts:
paths:
- /fradrive/.stack/
@ -48,19 +44,13 @@ compile:
lint:
stage: lint
needs:
- job: container
optional: true
script:
- make -- backend-lint
- make -- backend-lint${PROD_BUILD}
cache: *backend-cache
test:
stage: test
needs:
- job: container
optional: true
- compile
script:
- make -- backend-test
- make -- backend-test${PROD_BUILD}
cache: *backend-cache