Home

tmpl @4987bf8aed021ee787d751eea7934b8f1ab8693a - refs - log -
-
https://git.jolheiser.com/tmpl.git
Template automation
tmpl / .woodpecker.yml
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
clone:
  git:
    image: woodpeckerci/plugin-git
    settings:
      tags: true

pipeline:
  compliance:
    image: golang:1.18
    commands:
      - go test -race ./...
      - go vet ./...
      - go run github.com/rs/zerolog/cmd/lint@latest go.jolheiser.com/tmpl
    when:
      event: pull_request

  build:
    image: goreleaser/goreleaser
    commands:
      - goreleaser build --snapshot
    when:
      event: pull_request

  release:
    image: goreleaser/goreleaser
    commands:
      - goreleaser release
    secrets: [ gitea_token ]
    when:
      event: tag

  prune:
    image: jolheiser/drone-gitea-prune
    settings:
      base: https://git.jojodev.com
      token:
        from_secret: gitea_token
    when:
      event: tag