Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
ric-app-hw-py
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wen Wei Li
ric-app-hw-py
Commits
082c7c6c
Commit
082c7c6c
authored
Aug 29, 2023
by
Wen Wei Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
complete whole CI/CD process
parent
eae50cd9
Pipeline
#4838
canceled with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
.drone.yml
.drone.yml
+33
-0
No files found.
.drone.yml
View file @
082c7c6c
...
@@ -3,6 +3,20 @@ kind: pipeline
...
@@ -3,6 +3,20 @@ kind: pipeline
type
:
docker
type
:
docker
name
:
deploy
name
:
deploy
steps
:
steps
:
# build images
-
name
:
build-and-publish-image
image
:
plugins/docker
settings
:
registry
:
192.168.17.110
repo
:
192.168.17.110/study_group/ric-app-hw
dockerfile
:
Dockerfile
tags
:
1.0.6
username
:
from_secret
:
harbor_username
password
:
from_secret
:
harbor_password
insecure
:
true
storage_driver
:
vfs
# scan
# scan
-
name
:
sast_scan
-
name
:
sast_scan
image
:
prlab/sast_scan
image
:
prlab/sast_scan
...
@@ -43,6 +57,25 @@ steps:
...
@@ -43,6 +57,25 @@ steps:
source
:
/home/reports/
source
:
/home/reports/
depends_on
:
[
"
sast_scan"
,
"
code-analysis"
,
"
dependency-check-py"
]
depends_on
:
[
"
sast_scan"
,
"
code-analysis"
,
"
dependency-check-py"
]
# deploy
-
name
:
ssh_to_deploy
image
:
ghcr.io/appleboy/drone-ssh
settings
:
host
:
-
192.168.0.22
username
:
from_secret
:
ssh_username
password
:
from_secret
:
ssh_password
port
:
22
command_timeout
:
30s
script
:
-
cd /root/drone/
-
if [ ! -d ${DRONE_REPO_NAME} ];then git clone ${DRONE_REPO_LINK}; fi
-
cd /root/xAppSec
-
./xAppSec -c /root/drone/${DRONE_REPO_NAME}/init/config-file.json /root/drone/${DRONE_REPO_NAME}/init/schema.json &> /root/drone/log
depends_on
:
[
"
scp"
]
volumes
:
volumes
:
-
name
:
cache
-
name
:
cache
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment