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
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: default
|
name: project-go
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
#构建镜像
|
||||||
image: registry.cn-shanghai.aliyuncs.com/gong92-socl/hy-test-k8s
|
- name: build
|
||||||
|
image: golang:latest
|
||||||
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
- ls
|
- ls -a
|
||||||
- echo 12334
|
|
||||||
|
|
||||||
services:
|
#推送镜像至镜像仓库
|
||||||
- name: kubernetes
|
- name: publish
|
||||||
host:
|
image: plugins/docker
|
||||||
from_secret: kube_host
|
settings:
|
||||||
certificate:
|
purge: false
|
||||||
from_secret: kube_cert
|
registry: registry.cn-shanghai.aliyuncs.com
|
||||||
username:
|
repo: registry.cn-shanghai.aliyuncs.com/gong92-socl/hy-test-k8s
|
||||||
from_secret: kube_user
|
use_cache: true
|
||||||
password:
|
tags:
|
||||||
from_secret: kube_pass
|
- latest
|
||||||
|
username:
|
||||||
|
from_secret: aliyun_docker_name
|
||||||
|
password:
|
||||||
|
from_secret: aliyun_docker_password
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
Loading…
Reference in New Issue