Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ce-deploy-ui
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ccce
dev
ce-deploy-ui
Commits
c1d85728
Commit
c1d85728
authored
1 year ago
by
Simon Rose
Browse files
Options
Downloads
Plain Diff
Merge branch 'improve_ci' into 'main'
CE-616
: Improve CI pipeline See merge request
!408
parents
bb2201aa
e127f633
No related branches found
No related tags found
2 merge requests
!410
CE-616: Merge main into develop, improve CI pipelines
,
!408
CE-616: Improve CI pipeline
Pipeline
#165661
passed
1 year ago
Stage: dependencies
Stage: check
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+32
-27
32 additions, 27 deletions
.gitlab-ci.yml
with
32 additions
and
27 deletions
.gitlab-ci.yml
+
32
−
27
View file @
c1d85728
...
...
@@ -8,10 +8,7 @@ stages:
-
dependencies
-
check
-
build
-
lint
-
documentation
-
test
-
package
-
release
-
deploy
...
...
@@ -34,30 +31,42 @@ pre-commit:
image
:
registry.esss.lu.se/ics-docker/pre-commit:latest
script
:
-
pre-commit run --all-files
build
:
stage
:
build
image
:
$NODE_IMAGE
script
:
-
CI=false npm run build
artifacts
:
paths
:
-
build
needs
:
-
job
:
dependencies
artifacts
:
true
lint
:
stage
:
lint
stage
:
check
image
:
$NODE_IMAGE
script
:
-
npm run code-quality
needs
:
-
job
:
dependencies
artifacts
:
true
artifacts
:
reports
:
codequality
:
gl-codequality.json
build-image
:
stage
:
build
image
:
docker:latest
needs
:
-
job
:
dependencies
artifacts
:
true
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
docker build -t $CONTAINER_IMAGE --build-arg REACT_APP_MUI_PRO_LICENSE_KEY=${REACT_APP_MUI_PRO_LICENSE_KEY} .
-
docker push $CONTAINER_IMAGE
build-storybook
:
stage
:
documentation
stage
:
build
image
:
$NODE_IMAGE
script
:
-
npm run build-storybook
needs
:
-
job
:
dependencies
artifacts
:
true
artifacts
:
paths
:
-
storybook-static
...
...
@@ -67,26 +76,20 @@ test-components-chrome:
image
:
$CYPRESS_IMAGE
script
:
-
CHOKIDAR_USEPOLLING=true WATCHPACK_POLLING=true npx cypress run --component --browser chrome
needs
:
-
job
:
dependencies
artifacts
:
true
artifacts
:
when
:
on_failure
paths
:
-
cypress/videos
-
cypress/screenshots
build-image
:
stage
:
package
image
:
docker:latest
dependencies
:
[]
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
docker build -t $CONTAINER_IMAGE --build-arg REACT_APP_MUI_PRO_LICENSE_KEY=${REACT_APP_MUI_PRO_LICENSE_KEY} .
-
docker push $CONTAINER_IMAGE
release-image
:
stage
:
release
image
:
docker:latest
dependencies
:
[]
needs
:
-
build-image
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
...
...
@@ -99,7 +102,8 @@ release-image:
deploy-test
:
stage
:
deploy
image
:
registry.esss.lu.se/ics-docker/awxkit
dependencies
:
[]
needs
:
-
build-image
script
:
-
>
awx job_templates launch deploy-ccce-test
...
...
@@ -114,7 +118,8 @@ deploy-test:
deploy-demo
:
stage
:
deploy
image
:
registry.esss.lu.se/ics-docker/awxkit
dependencies
:
[]
needs
:
-
build-image
script
:
-
>
awx job_templates launch deploy-ccce-demo
...
...
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