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

develop
Gong 2023-08-28 15:38:11 +08:00
parent 0a3fe2cfaa
commit 3503c90e1d
1 changed files with 10 additions and 1 deletions

View File

@ -13,7 +13,7 @@ steps: # 定义管道的执行步骤
- pwd - pwd
- ls -a - ls -a
- name: build # 步骤名称 - name: build # 步骤名称
image: gong921123/debian-nginx-php114-74:latest # 当前步骤使用的镜像 image: docker/compose image: composer:latest # 当前步骤使用的镜像 image: composer:latest 执行 composer 的依赖加载
commands: # 当前步骤执行的命令 commands: # 当前步骤执行的命令
- composer -v - composer -v
- ls -a - ls -a
@ -32,12 +32,21 @@ steps: # 定义管道的执行步骤
registry: docker.io registry: docker.io
insecure: true # 不使用https insecure: true # 不使用https
auto_tag: true auto_tag: true
tag: v0.0.1
username: username:
from_secret: docker_username from_secret: docker_username
password: password:
from_secret: docker_password from_secret: docker_password
dockerfile: hyperf/docker/Dockerfile dockerfile: hyperf/docker/Dockerfile
- name: pull_image
image: docker
commands:
- docker pull gong921123/hyperf:v0.0.1
# 可选步骤,如果您需要将镜像推送到另一个仓库,可以添加以下命令
# - docker tag your-docker-image new-docker-repo/your-docker-image
# - docker push new-docker-repo/your-docker-image
trigger: # 触发条件,并关系 trigger: # 触发条件,并关系
branch: # git 分支 branch: # git 分支
- develop - develop