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.
78 lines
1.5 KiB
78 lines
1.5 KiB
name: logbot3
|
|
|
|
kind: pipeline
|
|
type: docker
|
|
|
|
steps:
|
|
- name: go-build-1.11
|
|
image: golang:1.11
|
|
commands:
|
|
- go mod download
|
|
- CGO_ENABLED=0 go build -ldflags "-w -s" .
|
|
when:
|
|
event:
|
|
exclude:
|
|
- tag
|
|
|
|
- name: go-build-1.12
|
|
image: golang:1.12
|
|
commands:
|
|
- go mod download
|
|
- CGO_ENABLED=0 go build -ldflags "-w -s" .
|
|
when:
|
|
event:
|
|
exclude:
|
|
- tag
|
|
|
|
- name: go-build-1.13
|
|
image: golang:1.13
|
|
commands:
|
|
- go mod download
|
|
- CGO_ENABLED=0 go build -ldflags "-w -s" .
|
|
when:
|
|
event:
|
|
exclude:
|
|
- tag
|
|
|
|
- name: go-build-1.14
|
|
image: golang:1.14
|
|
commands:
|
|
- go mod download
|
|
- CGO_ENABLED=0 go build -ldflags "-w -s" .
|
|
when:
|
|
event:
|
|
exclude:
|
|
- tag
|
|
|
|
- name: go-test
|
|
image: golang:1.14
|
|
commands:
|
|
- go test -v ./...
|
|
|
|
- name: docker-release-tag
|
|
image: plugins/docker
|
|
settings:
|
|
auto_tag: true
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
repo: r.vmaple.dev/rpdata/logbot3
|
|
registry: r.vmaple.dev
|
|
when:
|
|
event:
|
|
- tag
|
|
|
|
- name: docker-release-latest
|
|
image: plugins/docker
|
|
settings:
|
|
auto_tag: false
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
repo: r.vmaple.dev/rpdata/logbot3
|
|
registry: r.vmaple.dev
|
|
when:
|
|
event:
|
|
- tag
|