fix: test18
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
parent
fb9aee6635
commit
6ba50d9288
38
.drone.yml
38
.drone.yml
|
@ -1,25 +1,27 @@
|
|||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: default
|
||||
name: project-go
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: registry.cn-shanghai.aliyuncs.com/gong92-socl/hy-test-k8s
|
||||
#构建镜像
|
||||
- name: build
|
||||
image: golang:latest
|
||||
pull: if-not-exists
|
||||
commands:
|
||||
- ls
|
||||
- echo 12334
|
||||
- ls -a
|
||||
|
||||
services:
|
||||
- name: kubernetes
|
||||
host:
|
||||
from_secret: kube_host
|
||||
certificate:
|
||||
from_secret: kube_cert
|
||||
username:
|
||||
from_secret: kube_user
|
||||
password:
|
||||
from_secret: kube_pass
|
||||
#推送镜像至镜像仓库
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
purge: false
|
||||
registry: registry.cn-shanghai.aliyuncs.com
|
||||
repo: registry.cn-shanghai.aliyuncs.com/gong92-socl/hy-test-k8s
|
||||
use_cache: true
|
||||
tags:
|
||||
- latest
|
||||
username:
|
||||
from_secret: aliyun_docker_name
|
||||
password:
|
||||
from_secret: aliyun_docker_password
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
|
Loading…
Reference in New Issue