clarity-tech/clarity-envoy-deploy
最新稳定版本:v1.0.4
Composer 安装命令:
composer require clarity-tech/clarity-envoy-deploy
包简介
Deployment scripts for envoy standard zero deployments along with gitlab templates
README 文档
README
A standard failsafe zero downtime deployment scripts used in our projects at Clarity
step 1)
Go here https://gitlab.com/clarity-tech/dev-ops/pipelines
and read the ## Usage section
step 2)
create Envoy.blade.php on root of your project add below inside that file
@import('vendor/clarity-tech/clarity-envoy-deploy/src/Envoy.blade.php')
step 3)
update/replace the variables inside these files .gitlab/ci/.prepare-ssh-prod.yml and .gitlab/ci/.prepare-ssh-staging.yml
PROJECT_DIR
your-server-alias
step 4)
update ENV_PROD and ENV_STAGING as File variable as per your need in gitlab project CI/CD variables https://gitlab.com/clarity-tech/your-project-name/-/settings/ci_cd
and SSH_CONFIG as File variable with the config like below replace ip-of-the-server with your ip
Host clarity-server
HostName ip-of-the-server
User deployer
IdentitiesOnly yes
IdentityFile ~/.ssh/id_deployment
StrictHostKeyChecking no
lastly DEPLOYER_SSH_KEY_ID as File variable with the private key content file of the user that has access to the server
-----BEGIN OPENSSH PRIVATE KEY-----
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
QyNTUxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxvPiD
egxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxw
AAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxLp
key-content-stripped-due-to-secuirty-xxxxxxxxxxxxxxx==
-----END OPENSSH PRIVATE KEY-----
统计信息
- 总下载量: 99
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-17