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
c712ce45
Commit
c712ce45
authored
5 years ago
by
N5608
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
513574a7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-55
5 additions, 55 deletions
.gitlab-ci.yml
with
5 additions
and
55 deletions
.gitlab-ci.yml
+
5
−
55
View file @
c712ce45
stages
:
-
test
-
build_app
-
scan
-
deploy_app_testing
test
:
script
:
-
echo "OK"
tags
:
-
general
variables
:
IMAGE_NAME
:
${CI_REGISTRY_IMAGE}/app:latest
build_app
:
stage
:
build_app
image
:
docker:stable
variables
:
DOCKER_DRIVER
:
overlay2
services
:
-
docker:dind
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
-
docker build --cache-from $CI_REGISTRY/wimma-lab-2019/mysticons/cayac/demofrontend/app:latest --tag $CI_REGISTRY/wimma-lab-201$
-
docker push $CI_REGISTRY/wimma-lab-2019/mysticons/cayac/demofrontend/app:latest
only
:
-
Development
container_scan_service
:
stage
:
scan
variables
:
ANCHORE_CLI_URL
:
"
http://anchore-engine:8228/v1"
GIT_STRATEGY
:
none
image
:
docker.io/anchore/inline-scan:v0.3.3
services
:
-
name
:
docker.io/anchore/inline-scan:v0.3.3
alias
:
anchore-engine
command
:
[
"
start"
]
-
name
:
anchore/engine-db-preload:v0.3.3
alias
:
anchore-db
script
:
-
anchore-cli system wait
-
anchore-cli registry add "$CI_REGISTRY" gitlab-ci-token "$CI_JOB_TOKEN" --skip-validate
-
anchore_ci_tools.py -a -r --timeout 500 --image $IMAGE_NAME
artifacts
:
name
:
${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}
paths
:
-
anchore-reports/*
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