forked from jasder/forgeplus
Compare commits
9 Commits
cccc_ccc
...
update/has
Author | SHA1 | Date |
---|---|---|
jasder | e38b4331e2 | |
jasder | 11a91d062f | |
jasder | 2aea0aba15 | |
jasder | 617fb777e0 | |
jasder | e6752308ae | |
jasder | 15d5904df9 | |
jasder | d77db8c275 | |
jasder | a852764a43 | |
jasder | fc83612374 |
|
@ -1,13 +1,36 @@
|
||||||
|
#pipeline
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
# 构建Docker镜像并推送到仓库
|
||||||
image: ruby
|
# 定义镜像Hub路径以及账号密码
|
||||||
|
- name: Docker镜像构建
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username: username
|
||||||
|
password: pwd
|
||||||
|
repo: repoUrl
|
||||||
|
tags: latest
|
||||||
|
- name: golang编译
|
||||||
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- ruby -v
|
- go build
|
||||||
- ruby -v
|
# 根据实际情况修改主机ip、账号、密码
|
||||||
|
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
|
||||||
|
|
||||||
|
- name: 远程主机部署
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
|
host: 192.168.1.1
|
||||||
|
username: username
|
||||||
|
password: 'pasword'
|
||||||
|
port: 22
|
||||||
|
commands:
|
||||||
|
- chmod +x /home/deploy.sh
|
||||||
|
- ./home/deploy.sh
|
||||||
|
|
||||||
|
fff
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
----
|
----
|
||||||
# 本地开发部署步骤
|
# 本地开发部署步骤
|
||||||
|
# 本地开发部署步骤
|
||||||
|
|
||||||
#### 1. [安装依赖包](#安装依赖包)
|
#### 1. [安装依赖包](#安装依赖包)
|
||||||
|
|
||||||
|
@ -24,7 +25,7 @@ rails db:create
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 4. [导入数据表结构](#配置初始化文件)
|
#### 4. [导入数据表结构](#配置初始化文件)
|
||||||
<span id = "配置初始化文件">跳转到的位置</span>
|
<span id = "配置初始化文件">导入数据表结构</span>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bundle exec rake sync_table_structure:import_csv
|
bundle exec rake sync_table_structure:import_csv
|
||||||
|
|
Loading…
Reference in New Issue