Peter Vivell 7 лет назад
Родитель
Сommit
569b7eb6be
1 измененных файлов: 3 добавлений и 2 удалений
  1. 3
    2
      drone.yml

+ 3
- 2
drone.yml Просмотреть файл

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

Загрузка…
Отмена
Сохранить