RESTful Webservices for https://packetlostandfound.us
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.
 
 

49 lines
1.1 KiB

---
kind: pipeline
name: default
steps:
- name: build
image: golang:1.11
environment:
GO111MODULES: on
CGO_ENABLED: 0
commands:
- go build -ldflags '-w -extldflags "-static"' -o plafws ./cmd/
- name: test
image: golang:1.11
environment:
GO111MODULES: on
POSTGRES_USER: root
POSTGRES_PASSWORD: ""
POSTGRES_ADDR: "database:26257"
commands:
- go test -timeout 30s ./...
# This is broken right now
- name: docker-ci
image: plugins/docker:17.12
settings:
tags:
- latest
auto_tag: true
repo: registry.packetlostandfound.us/chiefnoah/packetlostandfoundws
registry: registry.packetlostandfound.us
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event: [deployment, push]
branches: [master, develop]
services:
- name: database
image: cockroachdb/cockroach:v2.1.0
command: [ "start", "--insecure" ]
---
kind: signature
hmac: 397b9180d9667507d7da63adca39ea74fee955881af2cfd4afe1d6a60ba4b4fc
...