Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
source-demo-front
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
narsu-group
source-demo-front
Commits
56b63400
Commit
56b63400
authored
5 years ago
by
N5608
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
dc1e770b
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-97
8 additions, 97 deletions
.gitlab-ci.yml
with
8 additions
and
97 deletions
.gitlab-ci.yml
+
8
−
97
View file @
56b63400
#This declares the pipeline stages
image
:
node:13.1
stages
:
-
build
-
test
-
deploy
cache
:
paths
:
-
node_modules/
build
:
stage
:
build
script
:
-
npm install
-
npm run-script build
tags
:
-
docker
test
:
stage
:
test
script
:
-
echo "Running react test suite......"
tags
:
-
docker
license_management
:
stage
:
test
image
:
name
:
"
registry.gitlab.labranet.jamk.fi//gitlab-org/security-products/license-management:$CI_SERVER_VERSION_MAJOR-$CI_SERVER_VERSION_MINOR-stable"
entrypoint
:
[
"
"
]
variables
:
SETUP_CMD
:
$LICENSE_MANAGEMENT_SETUP_CMD
allow_failure
:
true
build_image
:
script
:
-
/run.sh analyze .
artifacts
:
reports
:
license_management
:
$CI_PROJECT_DIR/gl-license-management-report.json
expire_in
:
1 week
dependencies
:
[]
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
-
docker build -t $CI_REGISTRY_IMAGE .
-
docker push $CI_REGISTRY_IMAGE
only
:
refs
:
-
branches
variables
:
-
$GITLAB_FEATURES =~ /\blicense_management\b/
except
:
variables
:
-
$LICENSE_MANAGEMENT_DISABLED
-
master
tags
:
-
docker
code_quality
:
stage
:
test
image
:
docker:stable
allow_failure
:
true
services
:
-
docker:stable-dind
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
script
:
-
|
if ! docker info &>/dev/null; then
if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then
export DOCKER_HOST='tcp://localhost:8080'
fi
fi
-
docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.labranet.jamk.fi/gitlab-org/security-products/codequality:12-0-stable" /code
artifacts
:
reports
:
codequality
:
$CI_PROJECT_DIR/gl-code-quality-report.json
expire_in
:
1 week
when
:
always
dependencies
:
[]
only
:
refs
:
-
branches
-
tags
except
:
variables
:
-
$CODE_QUALITY_ENABLE
tags
:
-
docker
deploy
:
stage
:
deploy
script
:
-
echo 'Deploy'
tags
:
-
docker
-
general
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