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 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
repo: registry.cn-shanghai.aliyuncs.com/gong92-socl/hy-test-k8s
use_cache: true
tags:
- latest
username: username:
from_secret: kube_user from_secret: aliyun_docker_name
password: password:
from_secret: kube_pass from_secret: aliyun_docker_password
trigger:
event:
- push