juzaweb/auto-deploy 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

juzaweb/auto-deploy

最新稳定版本:1.1.2

Composer 安装命令:

composer require juzaweb/auto-deploy

包简介

Automate deployment deployment using git and webhooks

README 文档

README

Auto deployment using git and webhooks plugin

Set up Automated Deployments From GitHub With Webhook

  • Setup config in file .env
DEPLOY_ENABLE=true
DEPLOY_GITHUB_SECRET=<random-string>
  • Make drploy token, run command
php artisan deploy:make-token
  • Set up command on build, make .deploy.yml in root your source folder.

Example:

github-deploy:
  commands:
    - git pull
    - composer install --no-dev
    - php artisan migrate --force
  • Add a repository webhook on GitHub

To add a webhook to an existing repository, navigate to the GitHub repository page and go to "Settings" > "Webhooks". Click on "Add webhook".

  • Payload URL — A custom domain that points to your server or your server's public IP, followed by
https://yourdomain.com/webhook/deploy/github/{action}/{token}

{action}: Action define in your file .deploy.yml, example above, the action will be github-deploy

{token}: Your token created above

  • Secret — A shared secret DEPLOY_GITHUB_SECRET in .env
  • Which events would you like to trigger this webhook? (Default option: "Just the push event.")
IF YOU WANT TO ADD CUSTOM PARAM TO YOUR COMMANDS ADD QUERY STRING TO WEBHOOK URL

Example:

Webhook Url:

https://yourdomain.com/webhook/deploy/github/{action}/{token}?theme=default

In file .deploy.yml

github-deploy:
  commands:
    - cd themes/{theme}
    - git pull

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固