2 Star 0 Fork 181

Gitee Go / LaravelS 持续集成与部署案例

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

LaravelS 持续集成与部署案例

注意事项

在MasterPipeline.yml文件中,内置了部署阶段,如下图所示。用于将构建产出部署到远程主机上,如您不需要部署远程主机可删除此任务。如需要部署远程主机,请按照如下手册添加主机,并在yml中更改 hostGroupID。添加主机戳这里>>>

- stage: 
  name: deploy
  displayName: 部署
  steps:
    - step: deploy@agent
      name: deploy_agent
      displayName: '主机部署'
      # 请按照手册添加主机https://gitee.com/help/categories/76,并更改此ID
      hostGroupID: gitee-go-test
      deployArtifact:
          # 部署包来源,build表示来源于上游流水线,artifact表示来源于制品仓库,推荐使用build
        - source: artifact
          # 将部署包下载到主机后的部署包名,默认output
          name: output
          # 将部署包下载主机的具体目录,默认 ~/gitee_go/deoloy
          target: ~/gitee_go/deoloy
          # 上游制品名,只有当source为build时生效,默认output
          dependArtifact: output
          # 以下内容只有在source为artifact时生效,制品库名,默认default
          artifactRepository: release
          # 制品名,默认output
          artifactName: output
          # 制品版本,默认取最新
          artifactVersion: latest
      script: 
        |
        cd ~/gitee_go/deoloy
        tar zxvf laravels-server.tar.gz
        cd sourcecode/ && unzip sources.zip && rm sources.zip
        composer install && cd ..
        rm -fr ~/gitee_go/deoloy/laravels
        mv ~/gitee_go/deoloy/sourcecode ~/gitee_go/deoloy/laravels
        cd ~/gitee_go/deoloy/laravels
        echo Y | php artisan laravels publish
        php bin/laravels start -d
        rm ../laravels-server.tar.gz
        echo "Finish"

帮助手册

https://gitee.com/help/categories/69

Repository Comments ( 0 )

Sign in to post a comment

About

将 LaravelS 项目通过 Gitee Go 流水线自动部署到云主机的实战案例 expand collapse
PHP and 3 more languages
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/gitee-go/laravels-deploy-case.git
git@gitee.com:gitee-go/laravels-deploy-case.git
gitee-go
laravels-deploy-case
LaravelS 持续集成与部署案例
master

Search