|
|
@@ -1,5 +1,6 @@
|
|
1
|
1
|
kind: pipeline
|
|
2
|
2
|
name: clone-prepare-build-sign-release
|
|
|
3
|
+# https://github.com/drone/drone
|
|
3
|
4
|
|
|
4
|
5
|
platform:
|
|
5
|
6
|
os: linux
|
|
|
@@ -9,16 +10,11 @@ clone:
|
|
9
|
10
|
disable: false
|
|
10
|
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
|
13
|
steps:
|
|
16
|
|
-
|
|
17
|
|
-
|
|
18
|
|
-#http://plugins.drone.io/drone-plugins/drone-docker/
|
|
19
|
|
-#https://github.com/drone-plugins/drone-docker
|
|
20
|
14
|
- name: prepare
|
|
21
|
15
|
image: plugins/docker
|
|
|
16
|
+ # http://plugins.drone.io/drone-plugins/drone-docker/
|
|
|
17
|
+ # https://github.com/drone-plugins/drone-docker
|
|
22
|
18
|
when:
|
|
23
|
19
|
event: [ tag ]
|
|
24
|
20
|
settings:
|
|
|
@@ -31,7 +27,7 @@ steps:
|
|
31
|
27
|
password:
|
|
32
|
28
|
from_secret: reg-pass
|
|
33
|
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
|
31
|
#bip: 172.17.0.1/24
|
|
36
|
32
|
context: /drone
|
|
37
|
33
|
#custom_dns: 127.0.0.11
|
|
|
@@ -41,7 +37,7 @@ steps:
|
|
41
|
37
|
#target: production # build target from dockerfile, e.g. production, debug
|
|
42
|
38
|
dockerfile: Dockerfile
|
|
43
|
39
|
auto_tag: false
|
|
44
|
|
- auto_tag_suffix: linux-amd64
|
|
|
40
|
+ auto_tag_suffix: -linux-amd64
|
|
45
|
41
|
force_tag: true
|
|
46
|
42
|
tags:
|
|
47
|
43
|
- latest
|
|
|
@@ -52,6 +48,8 @@ steps:
|
|
52
|
48
|
|
|
53
|
49
|
- name: build
|
|
54
|
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
|
53
|
when:
|
|
56
|
54
|
event: [ push, tag ]
|
|
57
|
55
|
depends_on: [ prepare ]
|
|
|
@@ -77,10 +75,10 @@ steps:
|
|
77
|
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
|
78
|
- name: sign
|
|
83
|
79
|
image: plugins/gpgsign
|
|
|
80
|
+ # http://plugins.drone.io/drone-plugins/drone-gpgsign/
|
|
|
81
|
+ # https://github.com/drone-plugins/drone-gpgsign
|
|
84
|
82
|
when:
|
|
85
|
83
|
event: [ push, tag ]
|
|
86
|
84
|
depends_on: [ build ]
|
|
|
@@ -101,9 +99,10 @@ steps:
|
|
101
|
99
|
# https://github.com/drone-plugins/drone-gitea-release
|
|
102
|
100
|
- name: release
|
|
103
|
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
|
104
|
when:
|
|
105
|
105
|
event: [ tag ]
|
|
106
|
|
-# depends_on: [ sign ]
|
|
107
|
106
|
depends_on: [ sign ]
|
|
108
|
107
|
settings:
|
|
109
|
108
|
title: Release ${DRONE_REPO_NAME}-${DRONE_TAG} # file or string
|