mirror of
https://github.com/xiaoqidun/gocos.git
synced 2024-11-23 15:06:44 +08:00
21 lines
471 B
YAML
21 lines
471 B
YAML
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
|