Commit graph

3532 commits

Author SHA1 Message Date
Fabio Manganiello 39fb3026bf
Prevent push loops in build-ui pipeline.
The pipeline should check if the latest commit is an automated UI build
commit before proceeding with a new build.

We need this check in place to prevent pipelines triggered by a push in
another pipeline that end up triggering other pipelines until a manual
cancel.
2023-08-07 00:10:46 +02:00
Fabio Manganiello 2005bc9f62
Always run notify-build-status - including on failure. 2023-08-07 00:05:13 +02:00
Fabio Manganiello dd313c6371
[Automatic] Updated UI files
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-08-06 21:50:25 +00:00
Fabio Manganiello 2f007888fc
[Automatic] Updated UI files
Some checks failed
continuous-integration/drone/push Build is failing
2023-08-06 21:48:33 +00:00
Fabio Manganiello 609a8c6052
[Automatic] Updated UI files
Some checks failed
continuous-integration/drone/push Build is failing
2023-08-06 21:46:44 +00:00
Fabio Manganiello 276a9a7421
[Automatic] Updated UI files
Some checks failed
continuous-integration/drone/push Build is failing
2023-08-06 21:44:51 +00:00
Fabio Manganiello 715cdcfcff
More consistent style for the buttons on the tokens settings page.
Some checks failed
continuous-integration/drone/push Build is failing
2023-08-06 23:42:50 +02:00
Fabio Manganiello 6453b7d391
Explicitly re-add the repo SSH origin and push.
Committing alone doesn't seem to suffice in the build-ui Drone CI step.
2023-08-06 23:40:35 +02:00
Fabio Manganiello bd49e460d5
More style improvements for the user settings panel.
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-06 23:36:06 +02:00
Fabio Manganiello 51f907e1b5
Make sure that neither dist nor node_modules are present before building the UI.
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-06 23:19:43 +02:00
Fabio Manganiello 6eed558342
More improvements on the users settings panel.
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-08-06 23:14:54 +02:00
Fabio Manganiello d92da5fe6f
Simplified Drone CI DAG.
Removed redundant `depends_on` steps in the pipeline.
2023-08-06 22:36:04 +02:00
Fabio Manganiello 2d999c471a
Removed git push from build-ui pipeline.
All checks were successful
continuous-integration/drone/push Build is passing
If my understanding of Drone CI pipelines is correct, the steps are
executed before the push, so any new commits should be pushed too.
2023-08-06 22:31:05 +02:00
Fabio Manganiello a739303041
Added build-ui step to the Drone pipeline.
Some checks failed
continuous-integration/drone/push Build is failing
2023-08-06 22:21:22 +02:00
Fabio Manganiello 1d47b35219
Updated UI dependencies 2023-08-06 20:38:46 +02:00
Fabio Manganiello 237e0c47cb
Redesigned config panel UI. 2023-08-06 18:49:03 +02:00
Fabio Manganiello d3fce6d922
Added notify-build-status step to Drone pipeline.
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-06 11:14:12 +02:00
Fabio Manganiello ed192faab2
Added notify-release step to Drone pipeline. 2023-08-06 11:08:01 +02:00
Fabio Manganiello 7a15c7c749
Added update-pip-package step in Drone pipeline. 2023-08-06 10:49:44 +02:00
Fabio Manganiello 063697c824
Remote and branch should be specified in git pull --tags
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-06 00:57:00 +02:00
Fabio Manganiello f9c74a3c98
Git tags lookup only works in Drone pipelines if tags have been pulled.
Some checks failed
continuous-integration/drone/push Build is failing
2023-08-06 00:55:04 +02:00
Fabio Manganiello d887553211
Use HEAD...v${VERSION} to infer the git release number.
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-06 00:48:20 +02:00
Fabio Manganiello cd5c9fd046
Included Arch packages automation in .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-06 00:44:03 +02:00
Fabio Manganiello 1a2ab13197
Only rebuild docs when a new version is released.
All checks were successful
continuous-integration/drone/push Build is passing
Also removed the docs build status badge from README, as it is now part
of the standard Drone build process.
2023-08-05 14:43:10 +02:00
Fabio Manganiello 69f5bee397
Added docs rebuild step in Drone CI pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-04 11:18:42 +02:00
Fabio Manganiello 53aeb0b3b1
Better documentation for the Redis server + LINT fixes.
All checks were successful
continuous-integration/drone/push Build is passing
1. Added documentation to the README on the possible options to run the
   Redis service.

2. Show a relevant message to the user if the application is run with
   `--start-redis` and Redis couldn't start.

3. Some LINT/black chores on some files that hadn't been touched in a
   while.
2023-08-02 22:17:11 +02:00
Fabio Manganiello 99018598a5
Added reference to the IRC channel to the README.
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-25 00:29:03 +02:00
Fabio Manganiello e4756eb639
Replaced deprecated flask.escape with markupsafe.escape.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2023-07-25 00:26:15 +02:00
Fabio Manganiello 82811a11a6
Replaced git push --mirror with git push --all in drone.yml.
All checks were successful
continuous-integration/drone/push Build is passing
If the local clone doesn't have the tags or branches for some reason, we
don't want to lose that information on the Github repo.
2023-07-25 00:21:56 +02:00
Fabio Manganiello e240a8d3dc
Removed .gitlab-ci.yml
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-25 00:01:46 +02:00
Fabio Manganiello eadcfe345a
Added github-mirror step to .drone.yml 2023-07-25 00:00:47 +02:00
Fabio Manganiello 8f8e609231
Replaced Reddit link in the README with the local Lemmy instance
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-24 12:34:02 +02:00
Fabio Manganiello 7646d00b2a
Build status badge on README moved from my self-made txt-based framework to the Drone page at ci-cd.platypush.tech 2023-07-24 12:29:24 +02:00
Fabio Manganiello bfd5959735
(Fixed?) .drone.yml format
All checks were successful
continuous-integration/drone Build is passing
2023-07-24 12:12:13 +02:00
Fabio Manganiello 27705f7bdf Test pipelines migrated to Drone CI
Some checks reported errors
continuous-integration/drone Build was killed
2023-07-24 11:05:41 +02:00
Fabio Manganiello 9788c642f9
Fixed Dockerfile 2023-07-24 11:04:17 +02:00
Fabio Manganiello 1586484e84
Upgraded Dockerfile 2023-07-24 10:37:51 +02:00
Fabio Manganiello 91cd08cdff
Adapted tests to use a locally started Redis instance. 2023-07-24 10:37:07 +02:00
Fabio Manganiello 7a20fec52f
[#60] Added --workdir and --logsdir command-line options.
Also, the application is now using `XDG_CONFIG_HOME` and
`XDG_DATA_HOME` if available to lookup the configuration file and
working directory.

Closes: #60
2023-07-24 03:29:08 +02:00
Fabio Manganiello c1d66abb89
[#60] Added --workdir and --logsdir command-line options.
Closes: #60
2023-07-24 03:20:18 +02:00
Fabio Manganiello 5fd40af285 Revert "Added explicit --help option."
This reverts commit 1304be0718.
2023-07-24 02:38:12 +02:00
Fabio Manganiello 1304be0718 Added explicit --help option.
argparse.ArgumentParser doesn't seem to add the option automatically
anymore.
2023-07-24 02:11:42 +02:00
Fabio Manganiello e9a568fdd2
Unified interface to retrieve the Redis bus configuration.
A common `utils.get_redis_conf` has been created to handle the cascade
fallback logic used to retrive the default Redis configuration.
2023-07-24 01:04:13 +02:00
Fabio Manganiello 77ffefdccb
Added a Config.set method.
A useful interface to change configuration values at runtime.
2023-07-24 00:48:07 +02:00
Fabio Manganiello dd862db29a
[chore] LINT fixes 2023-07-24 00:35:03 +02:00
Fabio Manganiello 3e3d47aa44
Check first the configuration of the Redis plugin and then that of the backend. 2023-07-24 00:26:49 +02:00
Fabio Manganiello 315a89fb65
Added a default parameter to Config.get. 2023-07-23 23:31:57 +02:00
Fabio Manganiello 37dcaba7a1
Refactored structure of main application and startup scripts.
The main application class has been moved from __init__ to the app
module.

__init__ will contain instead the relevant global variables and the
modules and objects exposed to external integrations - such as
`get_plugin` and `get_backend`, or the `main` itself.

This will make future integrations much easier - the global __init__
doesn't contain any business logic now, it can import anything without
fearing circular dependencies, and it can limit its exposed objects to
those that we want to expose to 3rd-party integrations and scripts.

It will also make it easier to extend the main entry point with
additional logic - such as a supervisor or an embedded Redis server.
2023-07-23 23:12:36 +02:00
Fabio Manganiello 0dc380fa94
Removed dependency from prctl.
Also, black'd and LINT-fixed some files that hadn't been touched in a
while.
2023-07-23 19:17:30 +02:00
Fabio Manganiello 04b759e4d5
Upgraded base Python image in example Dockerfile.
3.7 -> 3.11
2023-07-23 17:27:48 +02:00