Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Frontend V2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GraphPolaris
Frontend V2
Merge requests
!36
feat: Docker multi-stage build and CI/CD push
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat: Docker multi-stage build and CI/CD push
multi-stage-build-and-push
into
main
Overview
6
Commits
1
Pipelines
68
Changes
2
Merged
Alen Zubic
requested to merge
multi-stage-build-and-push
into
main
1 year ago
Overview
6
Commits
1
Pipelines
68
Changes
2
Expand
Improve Docker to multi-stage build and push to registry.
Update central pipeline reference to
main
.
Edited
1 year ago
by
Alen Zubic
0
0
Merge request reports
Compare
main
version 80
4e4a4a2d
1 year ago
version 79
bff1f94e
1 year ago
version 78
04c4e8f0
1 year ago
version 77
8f2eb488
1 year ago
version 76
76973758
1 year ago
version 75
6fa13547
1 year ago
version 74
fa4867f1
1 year ago
version 73
8ce14839
1 year ago
version 72
721ba120
1 year ago
version 71
721ba120
1 year ago
version 70
8ef12e83
1 year ago
version 69
e0c09c36
1 year ago
version 68
70398d8c
1 year ago
version 67
a7e41adc
1 year ago
version 66
4d6c3ce3
1 year ago
version 65
4133973d
1 year ago
version 64
3045ea2f
1 year ago
version 63
fa74e3af
1 year ago
version 62
18733c1e
1 year ago
version 61
f1c85a46
1 year ago
version 60
5cd6d880
1 year ago
version 59
ee21c606
1 year ago
version 58
912b0f50
1 year ago
version 57
b93587e4
1 year ago
version 56
b93587e4
1 year ago
version 55
ba3066ec
1 year ago
version 54
d5efe278
1 year ago
version 53
a227fa0d
1 year ago
version 52
c7066909
1 year ago
version 51
8692686b
1 year ago
version 50
e5a9c1c1
1 year ago
version 49
30c93826
1 year ago
version 48
30c93826
1 year ago
version 47
0fd81d2a
1 year ago
version 46
ee824864
1 year ago
version 45
e35e0e57
1 year ago
version 44
9878894d
1 year ago
version 43
797ab3bb
1 year ago
version 42
0fd23974
1 year ago
version 41
c4306483
1 year ago
version 40
4f3b4f8c
1 year ago
version 39
87d69458
1 year ago
version 38
91666270
1 year ago
version 37
d7c6191a
1 year ago
version 36
8833b45b
1 year ago
version 35
5c3850db
1 year ago
version 34
a67cb865
1 year ago
version 33
77f44df1
1 year ago
version 32
f4ff55a2
1 year ago
version 31
2b2d860d
1 year ago
version 30
a4e64e48
1 year ago
version 29
a1074888
1 year ago
version 28
40628212
1 year ago
version 27
4f41a173
1 year ago
version 26
2c6b075e
1 year ago
version 25
9abb7470
1 year ago
version 24
362b1918
1 year ago
version 23
fc10dac4
1 year ago
version 22
b5e56981
1 year ago
version 21
df2b11e4
1 year ago
version 20
ea0d148d
1 year ago
version 19
4d5f58b8
1 year ago
version 18
3ed96d9f
1 year ago
version 17
2afd0ce7
1 year ago
version 16
0d14cf79
1 year ago
version 15
75e230a7
1 year ago
version 14
78585274
1 year ago
version 13
40bd5620
1 year ago
version 12
9bb2c017
1 year ago
version 11
23199746
1 year ago
version 10
598461be
1 year ago
version 9
d3378544
1 year ago
version 8
a590bb87
1 year ago
version 7
c187d741
1 year ago
version 6
8ad59f4c
1 year ago
version 5
7b34fd56
1 year ago
version 4
31ddc84c
1 year ago
version 3
a083e4e9
1 year ago
version 2
42f2c2d6
1 year ago
version 1
9bdf782b
1 year ago
main (base)
and
latest version
latest version
56e0cae8
1 commit,
1 year ago
version 80
4e4a4a2d
6 commits,
1 year ago
version 79
bff1f94e
6 commits,
1 year ago
version 78
04c4e8f0
6 commits,
1 year ago
version 77
8f2eb488
6 commits,
1 year ago
version 76
76973758
6 commits,
1 year ago
version 75
6fa13547
6 commits,
1 year ago
version 74
fa4867f1
6 commits,
1 year ago
version 73
8ce14839
6 commits,
1 year ago
version 72
721ba120
5 commits,
1 year ago
version 71
721ba120
5 commits,
1 year ago
version 70
8ef12e83
5 commits,
1 year ago
version 69
e0c09c36
5 commits,
1 year ago
version 68
70398d8c
5 commits,
1 year ago
version 67
a7e41adc
5 commits,
1 year ago
version 66
4d6c3ce3
5 commits,
1 year ago
version 65
4133973d
5 commits,
1 year ago
version 64
3045ea2f
5 commits,
1 year ago
version 63
fa74e3af
5 commits,
1 year ago
version 62
18733c1e
5 commits,
1 year ago
version 61
f1c85a46
5 commits,
1 year ago
version 60
5cd6d880
5 commits,
1 year ago
version 59
ee21c606
5 commits,
1 year ago
version 58
912b0f50
5 commits,
1 year ago
version 57
b93587e4
5 commits,
1 year ago
version 56
b93587e4
5 commits,
1 year ago
version 55
ba3066ec
5 commits,
1 year ago
version 54
d5efe278
5 commits,
1 year ago
version 53
a227fa0d
5 commits,
1 year ago
version 52
c7066909
5 commits,
1 year ago
version 51
8692686b
5 commits,
1 year ago
version 50
e5a9c1c1
5 commits,
1 year ago
version 49
30c93826
4 commits,
1 year ago
version 48
30c93826
4 commits,
1 year ago
version 47
0fd81d2a
4 commits,
1 year ago
version 46
ee824864
4 commits,
1 year ago
version 45
e35e0e57
3 commits,
1 year ago
version 44
9878894d
3 commits,
1 year ago
version 43
797ab3bb
3 commits,
1 year ago
version 42
0fd23974
3 commits,
1 year ago
version 41
c4306483
3 commits,
1 year ago
version 40
4f3b4f8c
3 commits,
1 year ago
version 39
87d69458
3 commits,
1 year ago
version 38
91666270
3 commits,
1 year ago
version 37
d7c6191a
3 commits,
1 year ago
version 36
8833b45b
3 commits,
1 year ago
version 35
5c3850db
3 commits,
1 year ago
version 34
a67cb865
3 commits,
1 year ago
version 33
77f44df1
3 commits,
1 year ago
version 32
f4ff55a2
3 commits,
1 year ago
version 31
2b2d860d
3 commits,
1 year ago
version 30
a4e64e48
3 commits,
1 year ago
version 29
a1074888
3 commits,
1 year ago
version 28
40628212
3 commits,
1 year ago
version 27
4f41a173
2 commits,
1 year ago
version 26
2c6b075e
2 commits,
1 year ago
version 25
9abb7470
2 commits,
1 year ago
version 24
362b1918
1 commit,
1 year ago
version 23
fc10dac4
1 commit,
1 year ago
version 22
b5e56981
1 commit,
1 year ago
version 21
df2b11e4
1 commit,
1 year ago
version 20
ea0d148d
1 commit,
1 year ago
version 19
4d5f58b8
1 commit,
1 year ago
version 18
3ed96d9f
1 commit,
1 year ago
version 17
2afd0ce7
1 commit,
1 year ago
version 16
0d14cf79
2 commits,
1 year ago
version 15
75e230a7
1 commit,
1 year ago
version 14
78585274
1 commit,
1 year ago
version 13
40bd5620
1 commit,
1 year ago
version 12
9bb2c017
1 commit,
1 year ago
version 11
23199746
1 commit,
1 year ago
version 10
598461be
1 commit,
1 year ago
version 9
d3378544
1 commit,
1 year ago
version 8
a590bb87
1 commit,
1 year ago
version 7
c187d741
1 commit,
1 year ago
version 6
8ad59f4c
1 commit,
1 year ago
version 5
7b34fd56
1 commit,
1 year ago
version 4
31ddc84c
1 commit,
1 year ago
version 3
a083e4e9
1 commit,
1 year ago
version 2
42f2c2d6
1 commit,
1 year ago
version 1
9bdf782b
1 commit,
1 year ago
2 files
+
22
−
131
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
.gitlab-ci.yml
+
9
−
124
Options
stages
:
-
prepare
-
test
-
build
-
dockerize
-
deploy
default
:
image
:
nikolaik/python-nodejs:python3.11-nodejs19-alpine
cache
:
&cache
key
:
files
:
-
pnpm-lock.yaml
paths
:
-
.pnpm-store
-
./node_modules/
-
./apps/web/node_modules/
-
./libs/shared/node_modules/
policy
:
pull
before_script
:
-
npm i -g pnpm
-
pnpm config set store-dir .pnpm-store
-
apk add --no-cache --virtual .build-deps build-base g++ cairo-dev jpeg-dev pango-dev giflib-dev
-
apk add --no-cache --virtual .runtime-deps cairo jpeg pango giflib
install:js
:
stage
:
prepare
interruptible
:
true
cache
:
<<
:
*cache
policy
:
push
script
:
-
pnpm install
# only:
# changes:
# - pnpm-lock.yaml
# - .gitlab-ci.yml
# - apps/**/*
# - libs/**/*
# refs:
# - main
# - merge_requests
.distributed
:
interruptible
:
true
cache
:
<<
:
*cache
before_script
:
-
npm i -g pnpm
-
apk add --update git
artifacts
:
paths
:
-
.pnpm-store
rules
:
# - if: $CI_COMMIT_BRANCH == "main"
# - if: $CI_COMMIT_BRANCH == "merge_requests"
-
changes
:
-
apps/**/*
-
libs/**/*
-
.gitlab-ci.yml
lint
:
stage
:
test
extends
:
.distributed
script
:
-
pnpm lint
test
:
stage
:
test
extends
:
.distributed
script
:
-
pnpm test
build-prod
:
stage
:
build
extends
:
.distributed
rules
:
# - if: $CI_COMMIT_BRANCH == "main"
-
changes
:
-
apps/**/*
-
libs/**/*
-
.gitlab-ci.yml
artifacts
:
paths
:
-
.pnpm-store
-
dist/apps/web
script
:
-
pnpm build
build-docker
:
image
:
docker:latest
services
:
-
name
:
docker:dind
alias
:
dockerdaemon
before_script
:
-
'
'
stage
:
dockerize
tags
:
-
docker
# only:
# - main
script
:
-
echo "$CI_REGISTRY_PASSWORD" | docker login https://$CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin
-
cd ./apps/web
-
docker build --progress plain -t $CI_REGISTRY/graphpolaris/frontend:latest .
-
docker push $CI_REGISTRY/graphpolaris/frontend:latest
dependencies
:
-
build-prod
variables
:
# Tell docker CLI how to talk to Docker daemon.
DOCKER_HOST
:
tcp://dockerdaemon:2375/
# Use the overlayfs driver for improved performance.
DOCKER_DRIVER
:
overlay2
# Disable TLS since we're running inside local network.
DOCKER_TLS_CERTDIR
:
"
"
# deploy:
# stage: deploy
# script:
# - ./deploy.sh
# # only:
# # - main
# environment: production
variables
:
CONTAINER_IMAGE
:
"
graphpolaris/frontend"
IMAGE_TAG_HELM_FILE
:
"
helm/staging/graphpolaris-frontend/values.yaml"
IMAGE_TAG_HELM_FILE_VARIABLE
:
"
image.tag"
include
:
-
project
:
'
graphpolaris/pipelines'
ref
:
main
file
:
'
docker-build-push.yml'
Loading