fix: YML
continuous-integration/drone/push Build is passing Details

develop
Gong 2023-08-29 14:38:13 +08:00
parent 8a63cb050a
commit 71a8a24a10
1 changed files with 24 additions and 24 deletions

View File

@ -16,32 +16,32 @@ steps: # 定义管道的执行步骤
# - ls -a
# ****************** 直接丢掉 默认会直接拉代码 ******************
- name: build # 步骤名称
image: gong921123/debian-nginx-php114-74:latest # 当前步骤使用的镜像 image: composer:latest 这里还是使用自己的环境 否则可能一些依赖版本问题会出现这里的composer是 2.5.4 版本
commands: # 当前步骤执行的命令
- composer -v
- ls -a
- composer install -v
- ls -a
- name: deploy-push-images
depends_on: # 依赖build管道
- build
image: plugins/docker
settings:
repo: gong921123/hyperf # 推送到dockerhub仓库去
registry: docker.io
insecure: true # 不使用https
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: docker/Dockerfile
tags: latest
# - name: build # 步骤名称
# image: gong921123/debian-nginx-php114-74:latest # 当前步骤使用的镜像 image: composer:latest 这里还是使用自己的环境 否则可能一些依赖版本问题会出现这里的composer是 2.5.4 版本
# commands: # 当前步骤执行的命令
# - composer -v
# - ls -a
# - composer install -v
# - ls -a
#
# - name: deploy-push-images
# depends_on: # 依赖build管道
# - build
# image: plugins/docker
# settings:
# repo: gong921123/hyperf # 推送到dockerhub仓库去
# registry: docker.io
# insecure: true # 不使用https
# username:
# from_secret: docker_username
# password:
# from_secret: docker_password
# dockerfile: docker/Dockerfile
# tags: latest
- name: deploy-pull-project
depends_on: # 依赖build管道
- deploy-push-images
# depends_on:
# - deploy-push-images
image: appleboy/drone-ssh
settings:
host: gong.cool