Add static and promotion of builds
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Peter Stuifzand 2021-11-20 20:57:49 +01:00
parent 892a9cec72
commit bac33043c1
Signed by: peter
GPG Key ID: 374322D56E5209E8
2 changed files with 26 additions and 4 deletions

View File

@ -1,6 +1,7 @@
---
kind: pipeline
type: docker
name: default
name: build
workspace:
base: /go
@ -16,13 +17,27 @@ steps:
commands:
- apk --no-cache add git
- go get -d -t ./...
- go install honnef.co/go/tools/cmd/staticcheck@latest
- go build p83.nl/go/ekster/cmd/eksterd
- go test ./...
- go vet ./...
- go test -v ./...
- staticcheck ./...
---
kind: pipeline
type: docker
name: deploy
depends_on:
- build
workspace:
base: /go
path: src/p83.nl/go/ekster
steps:
- name: publish-personal
image: plugins/docker
depends_on:
- testing
settings:
repo: registry.stuifzandapp.com/microsub-server
registry: registry.stuifzandapp.com
@ -57,3 +72,9 @@ steps:
- cd /home/microsub/microsub
- docker-compose pull web
- docker-compose up -d
trigger:
event:
- promote
target:
- production

View File

@ -7,6 +7,7 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/dnephin/pre-commit-golang