Add static and promotion of builds
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
892a9cec72
commit
bac33043c1
29
.drone.yml
29
.drone.yml
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user