26 lines
423 B
YAML
26 lines
423 B
YAML
|
kind: pipeline
|
||
|
name: default
|
||
|
|
||
|
workspace:
|
||
|
base: /go
|
||
|
path: src/deadbeef.codes/steven/siteviewcounter
|
||
|
|
||
|
steps:
|
||
|
|
||
|
- name: build server
|
||
|
image: golang
|
||
|
pull: always
|
||
|
environment:
|
||
|
GOOS: linux
|
||
|
GOARCH: amd64
|
||
|
CGO_ENABLED: 0
|
||
|
commands:
|
||
|
- go version
|
||
|
- go get
|
||
|
- go build -a -ldflags '-w'
|
||
|
|
||
|
- name: package in docker container
|
||
|
image: plugins/docker
|
||
|
settings:
|
||
|
repo: registry.deadbeef.codes/siteviewcounter
|