fix: test18
continuous-integration/drone/push Build was killed Details

develop
Unshift 2024-11-22 14:44:39 +08:00
parent fb9aee6635
commit 6ba50d9288
1 changed files with 20 additions and 18 deletions

View File

@ -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