You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
471 B

kind: pipeline
type: docker
name: default
steps:
- name: build
pull: if-not-exists
image: xiaoqidun/goenv
commands:
- CGO_ENABLED=0 go build -o gocos -trimpath -ldflags '-s -w' gocos.go
- name: docker
pull: if-not-exists
image: plugins/docker
settings:
repo: xiaoqidun/gocos
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile