Browse Source

update drone.yml

tags/v0.0.19
Peter Vivell 6 years ago
parent
commit
569b7eb6be
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      drone.yml

+ 3
- 2
drone.yml View File

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

Loading…
Cancel
Save