1 Star 1 Fork 0

码上快乐/flask-restful-example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.drone.yml 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
kind: pipeline
name: default
steps:
# 代码分析
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
# 测试
- name: test
image: python:3
commands:
- pip install -r requirements.txt
- pytest
# 构建代码docker镜像
- name: code-build
image: plugins/docker
settings:
registry:
from_secret: docker_registry
repo:
from_secret: docker_repo
username:
from_secret: docker_name
password:
from_secret: docker_password
tags:
- latest
- '1.0'
# 将部署文件放入指定目录
- name: code-scp
image: appleboy/drone-scp
settings:
host:
from_secret: ssh_host
username:
from_secret: ssh_user
port: 22
password:
from_secret: ssh_password
target: /projects/ci_test
source: docker-compose.yaml
# 部署项目
- name: code-deploy
image: appleboy/drone-ssh
settings:
host:
from_secret: ssh_host
username:
from_secret: ssh_user
port: 22
password:
from_secret: ssh_password
script:
- cd /projects/ci_test
- docker-compose up -d
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qi_yongquan/flask-restful-example.git
git@gitee.com:qi_yongquan/flask-restful-example.git
qi_yongquan
flask-restful-example
flask-restful-example
master

搜索帮助