Browse Source

update drone.yml

tags/v0.0.26
Peter Vivell 6 years ago
parent
commit
d01c8b398d
1 changed files with 21 additions and 2 deletions
  1. 21
    2
      drone.yml

+ 21
- 2
drone.yml View File

1
 kind: pipeline
1
 kind: pipeline
2
-name: clone-build-release
2
+name: clone-build-sign-release
3
 
3
 
4
 platform:
4
 platform:
5
   os: linux
5
   os: linux
43
       find release -type f -exec md5sum '{}' \;
43
       find release -type f -exec md5sum '{}' \;
44
     - printf "\n\n\n======= BUILD FINISHED. =======\n\n\n"
44
     - printf "\n\n\n======= BUILD FINISHED. =======\n\n\n"
45
 
45
 
46
+# http://plugins.drone.io/drone-plugins/drone-gpgsign/
47
+# https://github.com/drone-plugins/drone-gpgsign
48
+- name: sign
49
+  image: plugins/gpgsign
50
+  when:
51
+    event: [ push, tag ]
52
+  depends_on: [ build ]
53
+  settings:
54
+    key:
55
+      from-secret: gpg-key
56
+    passphrase:
57
+      from-secret: gpg-pass
58
+    detach_sign: true
59
+    clear_sign: true
60
+ files:
61
+      - release/*
62
+ excludes:
63
+      - release/*.md5
64
+
46
 # http://plugins.drone.io/drone-plugins/drone-gitea-release/
65
 # http://plugins.drone.io/drone-plugins/drone-gitea-release/
47
 # https://github.com/drone-plugins/drone-gitea-release
66
 # https://github.com/drone-plugins/drone-gitea-release
48
 - name: release
67
 - name: release
49
   image: plugins/gitea-release
68
   image: plugins/gitea-release
50
   when:
69
   when:
51
     event: [ tag ]
70
     event: [ tag ]
52
-  depends_on: [ build ]
71
+  depends_on: [ sign ]
53
   settings:
72
   settings:
54
     title: Release ${DRONE_REPO_NAME}-${DRONE_TAG} # file or string
73
     title: Release ${DRONE_REPO_NAME}-${DRONE_TAG} # file or string
55
     note: RELEASE.md # file or string
74
     note: RELEASE.md # file or string

Loading…
Cancel
Save