2021-08-31 09:39:38 +08:00
|
|
|
|
kind: pipeline
|
|
|
|
|
name: build
|
2021-09-09 10:23:32 +08:00
|
|
|
|
|
2021-09-09 10:35:48 +08:00
|
|
|
|
# 减少没必要的重复拉取仓库(有BUG,会打包失败)
|
|
|
|
|
#clone:
|
|
|
|
|
# disable: true
|
2021-09-09 10:23:32 +08:00
|
|
|
|
|
2021-08-31 09:39:38 +08:00
|
|
|
|
steps:
|
|
|
|
|
- name: 打包Docker镜像并推送
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
settings:
|
|
|
|
|
registry: registry.cn-hangzhou.aliyuncs.com
|
|
|
|
|
repo: registry.cn-hangzhou.aliyuncs.com/lixh/golang-gateway-demo-k8s
|
|
|
|
|
use_cache: true
|
|
|
|
|
username: docker@1780395505853616
|
|
|
|
|
password: l4rQkKdtIOlHKkTv
|
|
|
|
|
auto_tag: true
|
|
|
|
|
when:
|
|
|
|
|
event: push
|
|
|
|
|
branch: master
|