【发布时间】:2021-05-10 02:04:52
【问题描述】:
当我使用 docker 管道时,它会成功构建。 但是当我使用 exec 管道时,它总是卡在待处理状态。 而且我不知道出了什么问题。
kind: pipeline
type: exec
name: deployment
platform:
os: linux
arch: amd64
steps:
- name: backend image build
commands:
- echo start build images...
# - export MAJOR_VERSION=1.0.rtm.
# - export BUILD_NUMBER=$DRONE_BUILD_NUMBER
# - export WORKSPACE=`pwd`
# - bash ./jenkins_build.sh
when:
branch:
- master
Docker Pipe Line 很好。
kind: pipeline
type: docker
name: deployment
steps:
- name: push image to repo
image: plugins/docker
settings:
dockerfile: src/ZR.DataHunter.Api/Dockerfile
tags: latest
insecure: true
registry: "xxx"
repo: "xxx"
username:
from_secret: username
password:
from_secret: userpassword
【问题讨论】:
-
你是在 Drone 云还是自托管?
-
同样的事情发生在我身上。你找到解决办法了吗?
标签: continuous-integration drone.io