api/.drone.yml

17 lines
424 B
YAML

kind: pipeline
name: build
steps:
- name: 打包Docker镜像并推送
image: plugins/docker
settings:
registry: registry.cn-hangzhou.aliyuncs.com
repo: registry.cn-hangzhou.aliyuncs.com/lixh/golang-api-demo-k8s
use_cache: true
username: docker@1780395505853616
password: l4rQkKdtIOlHKkTv
auto_tag: true
# tags:
# - v3
when:
event: push
branch: master