Commit graph

95 commits

Author SHA1 Message Date
Kyle Sanderson
3d64ed150a
ci: goreleaser lower parallelism to mitigate OOM issues (#1086)
ci: clamp parallelism to reality
2023-09-07 23:52:37 +02:00
Kyle Sanderson
b3957ac447
ci: build Goreleaser binaries on windows (#1040)
try windows again
2023-09-03 15:48:31 +02:00
Kyle Sanderson
c6c260ce31
ci: back-off Dependabot to monthly due to spam (#1076)
ci: back-off Dependabot to monthly due to bugs
2023-09-03 12:41:00 +02:00
Kyle Sanderson
82ffd3645b
ci: dependabot back-off scheduled runs (#1042) 2023-08-10 21:31:57 +02:00
dependabot[bot]
dc8ad9c813
build(deps): bump the chore-dependabot-github group with 1 update (#1032)
Bumps the chore-dependabot-github group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).

- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: chore-dependabot-github
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-07 00:25:11 +02:00
Kyle Sanderson
58b294e3cf
ci: enable dependabot (#1028)
* Create dependabot.yml

* flip day + time

* add gomod

* pnpm web

* huzzah - the walrus is here

* lines lines lines

* do you want to climb a mountain

* singing spock

* I'M IN SPACE

* what's a little / among friends
2023-08-04 00:04:32 +02:00
Kyle Sanderson
daa4bf9a0f
chore(deps): update build and packages (#1009)
* chore: update golang deps

* bump node and golang

* update node

* tell that to mel gibson.

* build: update go version

* chore: update deps

* chore: go mod tidy

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2023-07-21 18:00:03 +02:00
Kyle Sanderson
b1eae6e980
build: goreleaser parallel builds (#956)
* chore(goreleaser): parallel builds

* 8 seems like a good number

* 99 problems but a goreleaser... is one.

* fine?

* fine.

* Update release.yml

* Windows??

* bill

* flip to zip on Windows

* 4 minutes to zstd on windows... mac should be faster.

* long switch for clarity

* revert none hack

* flip web to mac

* bad touch

* mac web is a loss

* add zip
2023-05-24 12:56:12 +02:00
Fabricio Silva
1f76aa38f4
build(web): use pnpm from corepack (#935)
* feat(web): use pnpm packageManager on package.json

* build(web): add frozen-lockfile to Makefile

* build(docker): use the same node version as Docker image

* build(docker): enable corepack

* build(makefile): use --dir instead of cd for pnpm
2023-05-21 17:05:53 +02:00
Kyle Sanderson
762a0bb36b
chore(build): change to pnpm from yarn (#919)
* flip to npm

* try pnpm

* nothing good started with p anyway

* I want to go outside.

* Split out deps and build

* 30 seconds on the fetch, reintroduce the p

* lock it in

* flip lock file to pnpm

* nuke yarn.lock

* kirby no longer has yarn

* flip goreleaser to v4, was using node12.

* snapshots don't have tags

* Update README.md

* pin offline dockerfile

* Delete .yarnrc.yml

* Delete web/.yarn directory

* fix: update scripts

---------

Co-authored-by: ze0s <ze0s@riseup.net>
2023-05-08 20:28:43 +02:00
ze0s
fbdeedc74c
build(ci): goreleaser optimize uploads (#896)
ci: optimize uploads
2023-05-01 15:13:57 +02:00
ze0s
6e5385a490
refactor(web): replace pkg react-query with tanstack/react-query (#868)
* refactor: move to tanstack/react-query and fix cache

* refactor(releases): move to tanstack/react-query

* refactor(logs): move to tanstack/react-query

* refactor(base): move to tanstack/react-query

* refactor(base): move to tanstack/react-query

* refactor(dashboard): move to tanstack/react-query

* refactor(auth): move to tanstack/react-query

* refactor(filters): move to tanstack/react-query

* refactor(settings): move to tanstack/react-query

* chore(pkg): add tanstack/react-query

* refactor(filters): move to tanstack/react-query

* refactor: move to tanstack/react-query

* refactor: invalidate queries

* chore(pkg): remove old react-query

* chore: change imports to root prefixes

* build: remove needs web from test

* set enableReinitialize to true to fix formik caching issues

* fix all property for apiKeys const

* fix toast when enabling/disabling feed

---------

Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
2023-04-27 21:26:27 +02:00
Kyle Sanderson
0be92bef65
build: only push docker images for autobrr org (#873)
* build: speculative fix for develop push

* 🐝

* 🦀
2023-04-27 11:42:36 +02:00
Kyle Sanderson
7cbcc2e14c
build: do not push container images from forks (#869)
* fix(prs): don't push if not sourced from autobrr org

* when literals are strings, and strings are nothing.

* some say the beginning is like the end.

* Update release.yml?

* Update release.yml

* 🍺
2023-04-23 18:06:52 +02:00
Kyle Sanderson
d546288c2a
build: make ci 2-3x faster (#859)
* Create scratch.Dockerfile

* "best practices"

* even faster?

* too fast. change outdir

* flip to 1.20.3 + v4 + setup go on docker

* download deps

* debug

* Update ci.Dockerfile

* Update goreleaser.Dockerfile

* enable web caching

* Update release.yml

* Update ci.Dockerfile

* revert goreleaser

* cleanup

* set GOCACHE

* Update ci.Dockerfile

* Delete scratch.Dockerfile
2023-04-23 01:48:25 +02:00
KaiserBh
1cdbbe5bf3
refactor(web): migrate create-react-app to vite (#823)
* fix(build): dockerignore add exclusions

* fix: baseurl and build

* chore: removed react-app-env instead use vite

* chore: updated server and embedding static files.

* commented because conflict I believe, and not needed.

* docs: updated readme

* chore: updated json and added vite

* chore: import fix

* chore: updated yarn.lock and package json

* build: add empty dist to compile backend

* fix: use / as default baseurl

---------

Co-authored-by: KaiserBh <kaiserbh@proton.me>
Co-authored-by: ze0s <ze0s@riseup.net>
2023-04-10 14:28:24 +02:00
ze0s
33897b04a1
Revert #787 (#821)
Revert "refactor(web): migrate create-react-app to vite (#787)"

This reverts commit edae1bbf4b.
2023-04-07 19:08:42 +02:00
KaiserBh
edae1bbf4b
refactor(web): migrate create-react-app to vite (#787)
* removed react-app type instead use vite.

* removed index.html from public since vite uses it from root: read more: https://vitejs.dev/guide/#index-html-and-project-root

* yarn.lock update.

* added vite config file. With commented rollUp option if we want the build to be called build but using default stuff for now.

* updated tsconfig to use vite and include vite.config.ts

* changed package json build commands to use vite.

* for some reason there is an error in vite config when we put project as tsconfig.json.

* build.go updated to use the new dist folder.

* refactored as well updated to use dist and web.AssetHandler again.

* Fixed issue forcing the frontend to be reloaded for all routes to work if logged in fresh without reloading it will always go back to dashboard.

* updated it to use the new function; need to fix the Index for baseUrl I believe, if enabled it works except logs route will crash due to cors.

* refactored and default port to 7474, don't think we need the rollUpOptions.

* added tmp/ to ignore .

* init air.toml, for dev hot reloading both app and backend. https://github.com/cosmtrek/air run it using air but make sure it's in PATH

* updated the start command to build and watch for changes, works great with air.

* revert

* added proxy for vite config. To be used for dev.

* refactor: I think this should fix it, when logs route etc getting accessed usually it throws error but by getting rid of the catch-all it should work as intended, since web.RegisterHandler(r) will catch the unmatched ones.

* fix: baseurl and build

* fix(build): docker ignore !web/dist

* fix(build): dockerignore add exclusions

* docs: update README.md

* build: update postcss config

---------

Co-authored-by: KaiserBh <kaiserbh@proton.me>
Co-authored-by: ze0s <ze0s@riseup.net>
2023-04-07 16:04:10 +02:00
ze0s
fb6cbc775a
chore: update FUNDING.yml 2023-03-30 23:44:10 +02:00
ze0s
6ac3cc79c2
build: always run test job (#739)
build: always run tests
2023-03-05 17:41:57 +01:00
ze0s
65f51da68e
build: run tests before build (#737)
* build: run Go tests before build
2023-03-04 22:22:39 +01:00
Kyle Sanderson
b2d93d50c5
chore(deps): update Go to 1.20 (#726)
* chore(github): Update to go 1.20

* chore(go): enable language functionality in 1.20

* build: update go versions and rename dockerfile.ci
2023-02-28 23:29:51 +01:00
ze0s
33aa21fc15
build(ci): move back to hosted-runners (#547)
build(release): revert to hosted-runners
2022-11-18 21:03:56 +01:00
ze0s
19c9b79496
chore: update issue templates 2022-11-12 14:26:08 +01:00
ze0s
2cc08bed71
build: revert to old way of docker job (#508)
build: try old way for docker build
2022-10-19 22:17:45 +02:00
Kyle Sanderson
2d8f7aeb4e
feat(releases): retry failed downloads (#491)
* feat(download): implement parsing and retry

* feat: retry torrent file downloads

* refactor: error handling downloadtorrentfile

* feat: add tests for download torrent file

* build: add runs-on self-hosted

* build: add runs-on self-hosted
2022-10-19 21:52:31 +02:00
ze0s
bc335ccf1f
build: images with goreleaser (#496)
* build: images with goreleaser

* build: cleanup workflow
2022-10-13 20:31:43 +02:00
Kyle Sanderson
47eaeaa635
feat(rss): implement relative URL support (#484)
* feat(rss): implement relative URL support

* bp had some words

* feat(gh): uplift golang to 1.19.1

* feat(docker): uplift golang to 1.19

* feat(docker): uplift to go 1.19

* cleanup

* chore: update go version in go.mod

* feat: refactor and add test feed process item

* unescape query params after join
* break out logic into separate method
* add tests
2022-10-04 12:59:29 +02:00
ze0s
b4c3734bbd
chore: add issue templates (#434) 2022-08-31 15:58:42 +02:00
shapechecker
22829b194f
build(docker): add multiarch build for ARM, ARM64 and AMD64 (#378)
* Update Docker workflow

add buildx and qemu to support mulitarch builds
configure arm, arm64 and amd64 builds

* Change yarn timeout

fixes issue with yarn install timing out

* chore: update gitignore

* chore: add gitignore for web dir

* chore(web): upgrade to yarn2

* build: update actions and push docker hub

* build: add yarnrc and network-timeout

* build: unifi workflow

* build: depend on web to build first

* build: store artifacts between jobs

* build: store artifacts between jobs

* build: store artifacts between jobs

* build: store artifacts between jobs

* build: adjust dockerignore

* build: conditional extract metadata

* build: conditional extract metadata

* build: always push docker hub

* build: skip docker hub for now

* build: fix metadata
2022-08-03 19:38:32 +02:00
Kyle Sanderson
98ae6da6ca
build: add darwin macos (#387)
* enable apple
2022-08-03 14:29:53 +02:00
Ludvig Lundgren
c0f1037af0
docs: improve readme (#364)
* docs: improve readme

* docs: update feature list
2022-07-20 22:47:34 +02:00
Ludvig Lundgren
f961115dac
build: pr upload binary artifacts (#358)
* build: upload artifacts on pr

* build: use head sha for docker revision
2022-07-17 18:55:38 +02:00
Ludvig Lundgren
41eef4e8be
chore(build): update to Go 18 (#321) 2022-06-26 18:46:35 +02:00
Ludvig Lundgren
d4d864cd2c
build(actions): update docker workflow (#254) 2022-04-23 15:27:50 +02:00
Ludvig Lundgren
4b7a6d4419
build: run ci and build on pr (#244) 2022-04-13 12:19:29 +02:00
Ludvig Lundgren
1374dd150c
fix(build): actions docker build-args (#165)
* fix(build): actions docker build-args
2022-03-05 16:51:11 +01:00
Ludvig Lundgren
0878790232
build: set version in docker build (#164) 2022-03-04 23:01:12 +01:00
Ludvig Lundgren
bdbdab1f18
build: run docker release on branches (#130) 2022-02-09 19:11:49 +01:00
Ludvig Lundgren
53d75ef4d5
chore: create FUNDING.yml 2022-01-26 15:19:50 +01:00
Ludvig Lundgren
f24d846434 build: update permissions for docker 2022-01-16 16:06:48 +01:00
Ludvig Lundgren
ca6241e7cb
build: update and split gh workflows (#88) 2022-01-16 15:54:59 +01:00
Ludvig Lundgren
67c6bd7b53 build: update action docker login 2022-01-13 23:45:26 +01:00
Ludvig Lundgren
d22dd2fe84
build: autobrrctl and push to ghcr (#35) 2021-11-02 20:03:23 +01:00
Ludvig Lundgren
2e8d0950c1 build: releases with actions and docker 2021-08-11 15:41:09 +02:00