Commit Graph

48 Commits

Author SHA1 Message Date
Harvey Tindall a62648ee68
fix cross compilation in goreleaser/drone
Necessary for go-autostart to work on windows. Tray will be enabled by
default for x86_64 windows/linux binaries.
2021-05-16 21:01:31 +01:00
Harvey Tindall aaea889e47
use apt-get in drone.yml 2021-04-03 21:38:26 +01:00
Harvey Tindall a8bf670697
dont log updates when disabled 2021-03-20 23:20:07 +00:00
Harvey Tindall 0bdf8ad6ce
put upload.py in parent dir 2021-03-20 23:16:54 +00:00
Harvey Tindall 8f65e2e968
fix drone.yml for stable docker 2021-03-20 23:13:03 +00:00
Harvey Tindall f685582e1a
run upload.py in git directory 2021-03-07 16:27:15 +00:00
Harvey Tindall f792166523
use locally stored buildrone key bcs ssh is broken 2021-03-07 16:15:31 +00:00
Harvey Tindall 7c0754a70c
fix buildrone env 2021-03-07 16:07:55 +00:00
Harvey Tindall eb8f2777ae
fix naming conflict with goreleaser, add buildrone key to other steps 2021-03-07 15:54:32 +00:00
Harvey Tindall 92332206f0
add basic update functionality
If enabled, jfa-go pings buildrone (hosted at builds.hrfee.pw) every 30
min for new updates. If there is one, it gets information (and if
applicable, a binary) from the appropriate source (buildrone, github, or
dockerhub) and displays it on the admin page. You can switch update
channels between stable and unstable. For binary releases, updates are
downloaded automatically and installed when the user presses update.

Since this obviously introduces some "phone-home" functionality into
jfa-go, I just want to say IPs are not and will not be logged by
buildrone, although I may later introduce functionality to give a rough
idea of the number of users (again, no IPs stored). The whole thing can
also be turned off in settings.
2021-03-07 15:23:44 +00:00
Harvey Tindall cdc837e781
trim '/' from path when using systemFS
should fix #58.
2021-02-17 22:02:26 +00:00
Harvey Tindall e913f25a47
update buildrone url 2021-02-17 20:31:52 +00:00
Harvey Tindall 6b3800abf6
remove branch trigger 2021-02-17 16:34:04 +00:00
Harvey Tindall 09fc81d7f4
fix tag recognition by drone 2021-02-17 16:26:14 +00:00
Harvey Tindall 8dd72c95ab
switch image for drone builds 2021-02-17 11:19:51 +00:00
Harvey Tindall f794322392
Merge branch 'go1.16'
merge go1.16 changes

This includes embedded files for releases (no extra 'data' directory!)
and support for a custom language file directory, allowing one to
customize the text accross the app.
2021-02-17 11:15:21 +00:00
Harvey Tindall 33b7876826
build from tag on stable 2021-02-13 22:03:35 +00:00
Harvey Tindall 0fc4b5eb22
switch to buildx with qemu for builds 2021-02-13 21:59:33 +00:00
Harvey Tindall a80e5c2aa9
purge manifest and recreate per build 2021-02-13 20:49:56 +00:00
Harvey Tindall 060f0efc16
pull containers before manifest, run on different host 2021-02-13 14:05:04 +00:00
Harvey Tindall c3fb00a307
wrong go version container 2021-02-12 15:37:19 +00:00
Harvey Tindall 988829a6db
dont build docker on go1.16 branch 2021-02-12 15:22:21 +00:00
Harvey Tindall 76935a300a
dont build docker on go1.16 branch 2021-02-12 15:21:58 +00:00
Harvey Tindall ee37588959
drone image 2021-02-12 14:32:57 +00:00
Harvey Tindall 72cf3e2240
add external/internal data options
"make all" will build with internal data, whereas "make debug"/"make
all-external" will make an external "data/" directory.
2021-02-12 14:32:48 +00:00
Harvey Tindall 1af8d1f77d
fix url in account creation success page 2021-02-12 13:38:34 +00:00
Harvey Tindall 2ee0ed55f6
forgot key agh 2021-02-12 00:35:20 +00:00
Harvey Tindall 94981f4891
dont use drone manifest plugin 2021-02-11 23:52:05 +00:00
Harvey Tindall 81fb0fc69f
fix triggers aarch64 = arm64 2021-02-11 22:25:00 +00:00
Harvey Tindall c3af0f4380
remove tag event from unstable build 2021-02-11 21:48:57 +00:00
Harvey Tindall 3a9e4950d4
run docker amd64 builds on drone, attempt multiarch 2021-02-11 21:18:32 +00:00
Harvey Tindall 06dada297b
up command_timeout for slow rpi builds 2021-02-11 18:47:24 +00:00
Harvey Tindall e1c3b312ff
split armhf and arm64, add stable build 2021-02-11 16:24:32 +00:00
Harvey Tindall e235ed9fda
fix key again 2021-02-11 16:14:39 +00:00
Harvey Tindall 5cda12dd3b
separate into pipelines, add armhf 2021-02-11 16:11:07 +00:00
Harvey Tindall a9d48083fd
fix keyfile 2021-02-11 15:48:13 +00:00
Harvey Tindall e28c50401e
use key path 2021-02-11 15:37:02 +00:00
Harvey Tindall 4a3b015a40
start adding automated arm builds 2021-02-11 15:29:33 +00:00
Harvey Tindall 95a6b48c3e
add go1.16 branch do drone builds
This branch has fully self-contained binaries, so I thought it'd be a
good idea to build it alongside.
2021-02-01 18:43:30 +00:00
Harvey Tindall 0171fb8569
dont attempt to release PRs on buildrone 2021-01-08 23:52:36 +00:00
Harvey Tindall 5fd2e81fe4
install requests dep for upload.py
sorry for commit spam.
2020-10-08 21:48:15 +01:00
Harvey Tindall a12678bd4d
upload tar.gz instead of zip 2020-10-08 21:37:44 +01:00
Harvey Tindall e3644e8fbf
fix indentation 2020-10-08 21:10:31 +01:00
Harvey Tindall 04198f3d49
initial buildrone integration
buildrone is a little build server thing i wrote. This change should
cause all new Drone builds to be uploaded to it.
2020-10-08 21:06:36 +01:00
Harvey Tindall 8f7a65bebb
fix drone.yml build 2020-09-29 23:41:15 +01:00
Harvey Tindall 64c5badddd
more drone testing 2020-09-29 23:28:14 +01:00
Harvey Tindall 2e0519b183
drone testing 2020-09-29 23:22:29 +01:00
Harvey Tindall 9e739e79e7
initial drone ci setup 2020-09-29 23:10:07 +01:00