Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.21 KB | None | 0 0
  1. ---
  2. kind: pipeline
  3. name: default
  4.  
  5. workspace:
  6.   base: /go
  7.   path: src/github.com/metalmatze/alertmanager-bot
  8.  
  9. platform:
  10.   os: linux
  11.   arch: amd64
  12.  
  13. steps:
  14. - name: go
  15.   pull: default
  16.   image: golang
  17.   commands:
  18.  - go env
  19.  
  20. - name: dep
  21.   pull: default
  22.   image: metalmatze/dep:0.5.0
  23.   commands:
  24.  - dep ensure -v -vendor-only
  25.  
  26. - name: build
  27.   pull: always
  28.   image: golang:1.10-alpine
  29.   commands:
  30.  - apk add -U git make
  31.   - make fmt
  32.   - make vet
  33.   - make lint
  34.   - make test
  35.   - make build
  36.   when:
  37.     event:
  38.    - push
  39.     - tag
  40.     - pull_request
  41.  
  42. - name: release
  43.   pull: default
  44.   image: golang:1.10-alpine
  45.   commands:
  46.  - apk add -U git make
  47.   - make release
  48.   when:
  49.     event:
  50.    - tag
  51.  
  52. - name: docker
  53.   pull: default
  54.   image: plugins/docker
  55.   settings:
  56.     repo: metalmatze/alertmanager-bot
  57.     tag:
  58.    - latest
  59.     - 0.3
  60.     - 0.3.1
  61.     username:
  62.       from_secret: docker_password
  63.     password:
  64.       from_secret: docker_username
  65.   when:
  66.     event:
  67.    - tag
  68.  
  69. - name: github
  70.   pull: default
  71.   image: plugins/github-release
  72.   settings:
  73.     files: "dist/*"
  74.   environment:
  75.     github_token:
  76.       from_secret: github_token
  77.   when:
  78.     event:
  79.    - tag
  80.  
  81. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement