fixed gitignore of dist folder
This commit is contained in:
parent
f6b0c0cd9c
commit
12bbbdba75
8 changed files with 80 additions and 4 deletions
15
.gitignore
vendored
15
.gitignore
vendored
|
@ -2,6 +2,11 @@ drone.sublime-project
|
|||
drone.sublime-workspace
|
||||
.vagrant
|
||||
|
||||
# ignore the drone binary, but makes sure
|
||||
# that subdirs named drone aren't ignored
|
||||
drone
|
||||
!dist/**
|
||||
|
||||
*~
|
||||
~*
|
||||
*.sqlite
|
||||
|
@ -17,10 +22,12 @@ drone.sublime-workspace
|
|||
*.min.js
|
||||
bindata.go
|
||||
|
||||
drone
|
||||
drone-build
|
||||
drone-bot
|
||||
# generate binaries
|
||||
cmd/drone/drone
|
||||
cmd/drone-build/drone-build
|
||||
cmd/drone-agent/drone-agent
|
||||
|
||||
# generated binaries
|
||||
bin/drone
|
||||
bin/drone-build
|
||||
bin/drone-bot
|
||||
bin/drone-agent
|
||||
|
|
1
bin/README
Normal file
1
bin/README
Normal file
|
@ -0,0 +1 @@
|
|||
This is where Drone binaries go after running "make" in the root directory.
|
1
dist/README
vendored
Normal file
1
dist/README
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
This is where Drone packages go after running "make dist" in the root directory.
|
2
dist/drone/DEBIAN/conffiles
vendored
Normal file
2
dist/drone/DEBIAN/conffiles
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/etc/init/drone.conf
|
||||
/etc/drone/drone.toml
|
7
dist/drone/DEBIAN/control
vendored
Normal file
7
dist/drone/DEBIAN/control
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
Package: drone
|
||||
Version: 0.4
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Maintainer: Brad Rydzewski <brad@drone.io>
|
||||
Description: Drone continuous integration server
|
24
dist/drone/DEBIAN/postinst
vendored
Executable file
24
dist/drone/DEBIAN/postinst
vendored
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
abort-upgrade|abort-remove|abort-deconfigure|configure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Starting drone ..."
|
||||
if [ -f /etc/init/drone.conf ]; then
|
||||
if pidof /usr/local/bin/drone >/dev/null; then
|
||||
service drone stop || exit $?
|
||||
fi
|
||||
service drone start && echo "Drone started."
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
26
dist/drone/DEBIAN/prerm
vendored
Executable file
26
dist/drone/DEBIAN/prerm
vendored
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
case "$1" in
|
||||
remove|remove-in-favour|deconfigure|deconfigure-in-favour)
|
||||
if [ -f /etc/init/drone.conf ]; then
|
||||
echo "Stopping drone ..."
|
||||
service drone stop || exit $?
|
||||
echo "Drone Stopped."
|
||||
fi
|
||||
;;
|
||||
|
||||
upgrade|failed-upgrade)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
8
dist/drone/etc/init/drone.conf
vendored
Normal file
8
dist/drone/etc/init/drone.conf
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
start on (filesystem and net-device-up)
|
||||
|
||||
chdir /var/lib/drone
|
||||
console log
|
||||
|
||||
script
|
||||
drone --config /etc/drone/drone.toml
|
||||
end script
|
Loading…
Reference in a new issue