|
|
@@ -6,6 +6,7 @@ platform:
|
|
6
|
6
|
arch: amd64
|
|
7
|
7
|
|
|
8
|
8
|
# https://readme.drone.io/user-guide/pipeline/
|
|
|
9
|
+# https://docs.drone.io/reference/environ/
|
|
9
|
10
|
# https://github.com/drone/drone
|
|
10
|
11
|
steps:
|
|
11
|
12
|
- name: build
|
|
|
@@ -39,7 +40,7 @@ steps:
|
|
39
|
40
|
- cp -rp html/. dist/var/www/html/gamma/
|
|
40
|
41
|
- mkdir -p dist/etc/nginx/snippets
|
|
41
|
42
|
- cp -p config/nginx-datasrc-location.conf dist/etc/nginx/snippets/nginx-datasrc-location.conf
|
|
42
|
|
- - RELEASE=${DRONE_REPO_NAME}-$DRONE_BRANCH
|
|
|
43
|
+ - RELEASE=${DRONE_REPO_NAME}-${DRONE_BRANCH}${DRONE_TAG}
|
|
43
|
44
|
- mv dist $RELEASE
|
|
44
|
45
|
- ls -la $RELEASE
|
|
45
|
46
|
- find $RELEASE -type f -exec md5sum '{}' \;
|
|
|
@@ -59,7 +60,7 @@ steps:
|
|
59
|
60
|
event: [ tag ]
|
|
60
|
61
|
depends_on: [ build ]
|
|
61
|
62
|
settings:
|
|
62
|
|
- title: Release # file or string
|
|
|
63
|
+ title: ${DRONE_REPO_NAME} # file or string
|
|
63
|
64
|
note: RELEASE.md # file or string
|
|
64
|
65
|
draft: false
|
|
65
|
66
|
prerelease: false
|