28 lines
563 B
YAML
Executable File
28 lines
563 B
YAML
Executable File
kind: pipeline
|
|
type: kubernetes
|
|
name: project-go
|
|
|
|
steps:
|
|
#构建镜像
|
|
- name: build
|
|
image: golang:latest
|
|
pull: if-not-exists
|
|
commands:
|
|
- ls -a
|
|
|
|
#推送镜像至镜像仓库
|
|
- 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
|
|
|