|
|
@@ -40,16 +40,16 @@ steps:
|
|
40
|
40
|
- cp -rp html/. dist/var/www/html/gamma/
|
|
41
|
41
|
- mkdir -p dist/etc/nginx/snippets
|
|
42
|
42
|
- cp -p config/nginx-datasrc-location.conf dist/etc/nginx/snippets/nginx-datasrc-location.conf
|
|
43
|
|
- - RELEASE=${DRONE_REPO_NAME}-${DRONE_REPO_BRANCH}-${DRONE_TAG}
|
|
|
43
|
+ - RELEASE=${DRONE_REPO_NAME}
|
|
|
44
|
+ - [ -n "${DRONE_REPO_BRANCH}" ] && RELEASE=${RELEASE}-${DRONE_REPO_BRANCH}
|
|
|
45
|
+ - [ -n "${DRONE_TAG}" ] && RELEASE=${RELEASE}-${DRONE_TAG}
|
|
44
|
46
|
- mv dist $RELEASE
|
|
45
|
|
- - ls -la $RELEASE
|
|
46
|
|
- - find $RELEASE -type f -exec md5sum '{}' \;
|
|
|
47
|
+ - ls -la $RELEASE ; find $RELEASE -type f -exec md5sum '{}' \;
|
|
47
|
48
|
- rm -rf release ; mkdir release
|
|
48
|
49
|
- zip -rp release/$RELEASE.zip $RELEASE
|
|
49
|
50
|
- tar -czvf release/$RELEASE.tar.gz $RELEASE
|
|
50
|
51
|
- tar -cJvf release/$RELEASE.tar.xz $RELEASE
|
|
51
|
|
- - ls -la release
|
|
52
|
|
- - find release -type f -exec md5sum '{}' \;
|
|
|
52
|
+ - ls -la release ; find release -type f -exec md5sum '{}' \;
|
|
53
|
53
|
- echo "Build finished successfully."
|
|
54
|
54
|
|
|
55
|
55
|
# http://plugins.drone.io/drone-plugins/drone-gitea-release/
|