2023-06-03 23:07:55 -06:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /go
|
2024-06-28 11:55:35 -06:00
|
|
|
path: src/code.stevenpolley.net/steven/lineageos-ota-server
|
2023-06-03 23:07:55 -06:00
|
|
|
|
|
|
|
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:
|
2024-06-28 11:55:35 -06:00
|
|
|
repo: registry.stevenpolley.net/lineageos-ota-server
|