Home

tmpl @fe9dd615805049849e6b29128cc743bfdec9b564 - 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
clone:
  git:
    image: woodpeckerci/plugin-git:next

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

  build:
    image: golang:1.17
    commands:
      - GOOS="windows" go build
      - GOOS="linux" go build
    when:
      event: [ push, tag ]
      branch: main

  release-main:
    image: jolheiser/drone-gitea-main:latest
    secrets:
      - source: gitea_token
        target: plugin_token
    base: https://git.jojodev.com
    files:
      - "tmpl"
      - "tmpl.exe"
    when:
      event: push
      branch: main

  release-tag:
    image: plugins/gitea-release:1
    secrets:
      - source: gitea_token
        target: plugin_api_key
    base_url: https://git.jojodev.com
    files:
      - "tmpl"
      - "tmpl.exe"
    when:
      event: tag
      tag: v*

  prune:
    image: jolheiser/drone-gitea-prune
    secrets:
      - source: gitea_token
        target: plugin_token
    base: https://git.jojodev.com
    when:
      event: tag
      tag: v*