Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- kind: pipeline
- name: default
- workspace:
- base: /go
- path: src/github.com/metalmatze/alertmanager-bot
- platform:
- os: linux
- arch: amd64
- steps:
- - name: go
- pull: default
- image: golang
- commands:
- - go env
- - name: dep
- pull: default
- image: metalmatze/dep:0.5.0
- commands:
- - dep ensure -v -vendor-only
- - name: build
- pull: always
- image: golang:1.10-alpine
- commands:
- - apk add -U git make
- - make fmt
- - make vet
- - make lint
- - make test
- - make build
- when:
- event:
- - push
- - tag
- - pull_request
- - name: release
- pull: default
- image: golang:1.10-alpine
- commands:
- - apk add -U git make
- - make release
- when:
- event:
- - tag
- - name: docker
- pull: default
- image: plugins/docker
- settings:
- repo: metalmatze/alertmanager-bot
- tag:
- - latest
- - 0.3
- - 0.3.1
- username:
- from_secret: docker_password
- password:
- from_secret: docker_username
- when:
- event:
- - tag
- - name: github
- pull: default
- image: plugins/github-release
- settings:
- files: "dist/*"
- environment:
- github_token:
- from_secret: github_token
- when:
- event:
- - tag
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement