Browse Source

update drone.yml

tags/v0.0.30^0
Peter Vivell 6 years ago
parent
commit
4cf3e88aa4
1 changed files with 11 additions and 12 deletions
  1. 11
    12
      drone.yml

+ 11
- 12
drone.yml View File

1
 kind: pipeline
1
 kind: pipeline
2
 name: clone-prepare-build-sign-release
2
 name: clone-prepare-build-sign-release
3
+# https://github.com/drone/drone
3
 
4
 
4
 platform:
5
 platform:
5
   os: linux
6
   os: linux
9
   disable: false
10
   disable: false
10
   depth: 50
11
   depth: 50
11
 
12
 
12
-# https://readme.drone.io/user-guide/pipeline/
13
-# https://docs.drone.io/reference/environ/
14
-# https://github.com/drone/drone
15
 steps:
13
 steps:
16
-
17
-
18
-#http://plugins.drone.io/drone-plugins/drone-docker/
19
-#https://github.com/drone-plugins/drone-docker
20
 - name: prepare
14
 - name: prepare
21
   image: plugins/docker
15
   image: plugins/docker
16
+  # http://plugins.drone.io/drone-plugins/drone-docker/
17
+  # https://github.com/drone-plugins/drone-docker
22
   when:
18
   when:
23
     event: [ tag ]
19
     event: [ tag ]
24
   settings:
20
   settings:
31
     password:
27
     password:
32
       from_secret: reg-pass
28
       from_secret: reg-pass
33
     repo: reg.unino.de/develop/debian-${DRONE_REPO_NAME}
29
     repo: reg.unino.de/develop/debian-${DRONE_REPO_NAME}
34
-    #mirror: registry.hub.docker.com/library/busybox
30
+    #mirror: registry-1.docker.io/library/debian:stable-slim
35
     #bip: 172.17.0.1/24
31
     #bip: 172.17.0.1/24
36
     context: /drone
32
     context: /drone
37
     #custom_dns: 127.0.0.11
33
     #custom_dns: 127.0.0.11
41
     #target: production # build target from dockerfile, e.g. production, debug
37
     #target: production # build target from dockerfile, e.g. production, debug
42
     dockerfile: Dockerfile
38
     dockerfile: Dockerfile
43
     auto_tag: false
39
     auto_tag: false
44
-    auto_tag_suffix: linux-amd64
40
+    auto_tag_suffix: -linux-amd64
45
     force_tag: true
41
     force_tag: true
46
     tags:
42
     tags:
47
       - latest
43
       - latest
52
 
48
 
53
 - name: build
49
 - name: build
54
   image: reg.unino.de/develop/debian-${DRONE_REPO_NAME}:latest
50
   image: reg.unino.de/develop/debian-${DRONE_REPO_NAME}:latest
51
+  # https://readme.drone.io/user-guide/pipeline/
52
+  # https://docs.drone.io/reference/environ/
55
   when:
53
   when:
56
     event: [ push, tag ]
54
     event: [ push, tag ]
57
   depends_on: [ prepare ]
55
   depends_on: [ prepare ]
77
     - echo "<<<<<<<{ BUILD FINISHED }>>>>>>>"
75
     - echo "<<<<<<<{ BUILD FINISHED }>>>>>>>"
78
 
76
 
79
 
77
 
80
-# http://plugins.drone.io/drone-plugins/drone-gpgsign/
81
-# https://github.com/drone-plugins/drone-gpgsign
82
 - name: sign
78
 - name: sign
83
   image: plugins/gpgsign
79
   image: plugins/gpgsign
80
+  # http://plugins.drone.io/drone-plugins/drone-gpgsign/
81
+  # https://github.com/drone-plugins/drone-gpgsign
84
   when:
82
   when:
85
     event: [ push, tag ]
83
     event: [ push, tag ]
86
   depends_on: [ build ]
84
   depends_on: [ build ]
101
 # https://github.com/drone-plugins/drone-gitea-release
99
 # https://github.com/drone-plugins/drone-gitea-release
102
 - name: release
100
 - name: release
103
   image: plugins/gitea-release
101
   image: plugins/gitea-release
102
+  # http://plugins.drone.io/drone-plugins/drone-gitea-release/
103
+  # https://github.com/drone-plugins/drone-gitea-release
104
   when:
104
   when:
105
     event: [ tag ]
105
     event: [ tag ]
106
-#  depends_on: [ sign ]
107
   depends_on: [ sign ]
106
   depends_on: [ sign ]
108
   settings:
107
   settings:
109
     title: Release ${DRONE_REPO_NAME}-${DRONE_TAG} # file or string
108
     title: Release ${DRONE_REPO_NAME}-${DRONE_TAG} # file or string

Loading…
Cancel
Save