Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
oetzit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
commul
oetzit
Commits
21cc5f45
Commit
21cc5f45
authored
3 years ago
by
Paolo.Brasolin
Browse files
Options
Downloads
Patches
Plain Diff
ci: split #fe build jobs
parent
4fe405f5
No related branches found
No related tags found
No related merge requests found
Pipeline
#23354
passed with warnings
3 years ago
Stage: setup
Stage: check
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+26
-9
26 additions, 9 deletions
.gitlab-ci.yml
with
26 additions
and
9 deletions
.gitlab-ci.yml
+
26
−
9
View file @
21cc5f45
...
...
@@ -114,19 +114,32 @@ test-be-node-job:
#--[ Frontend ]-----------------------------------------------------------------
build-fe-node-job
:
prd-
build-fe-node-job
:
extends
:
.fe-node-job
stage
:
build
variables
:
NODE_ENV
:
staging
NODE_ENV
:
production
script
:
-
npm run build
-
npm run build
-- --out-dir dist/prd
artifacts
:
paths
:
-
frontend/dist/
-
frontend/dist/
prd
expire_in
:
1 week
only
:
-
tags
stg-build-fe-node-job
:
extends
:
.fe-node-job
stage
:
build
variables
:
NODE_ENV
:
staging
script
:
-
npm run build -- --out-dir dist/stg
artifacts
:
paths
:
-
frontend/dist/stg
expire_in
:
1 week
only
:
-
development
#--[ Backend ]------------------------------------------------------------------
...
...
@@ -164,9 +177,6 @@ build-be-job:
.fe-deploy-job
:
image
:
alpine:latest
stage
:
deploy
needs
:
-
job
:
build-fe-node-job
artifacts
:
true
tags
:
-
commul
# NOTE: we can't use shared because extended seccomp policies are needed
before_script
:
...
...
@@ -174,30 +184,37 @@ build-be-job:
script
:
-
>
butler push
frontend/dist
$DIST_PATH
eurac/$GAME_NAME:html5
--userversion ${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}
# TODO: we need separate build job for prd
prd-fe-deploy-job
:
extends
:
.fe-deploy-job
needs
:
-
job
:
prd-build-fe-node-job
artifacts
:
true
environment
:
name
:
production/frontend
deployment_tier
:
production
url
:
https://eurac.itch.io/oetzi
variables
:
GAME_NAME
:
oetzi
DIST_PATH
:
frontend/dist/prd
only
:
-
tags
stg-fe-deploy-job
:
extends
:
.fe-deploy-job
needs
:
-
job
:
stg-build-fe-node-job
artifacts
:
true
environment
:
name
:
staging/frontend
deployment_tier
:
staging
url
:
https://eurac.itch.io/oetzi-staging
variables
:
GAME_NAME
:
oetzi-staging
DIST_PATH
:
frontend/dist/stg
only
:
-
development
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment