Dan Anglin
ee910722cb
Add support for taking on demand backups of Code Flow. Resolves flow/services#7 |
||
---|---|---|
assets/gotosocial | ||
config@1766c5ec17 | ||
example/gotosocial/css | ||
internal | ||
magefiles | ||
templates | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
go.mod | ||
go.sum | ||
LICENSE | ||
README.asciidoc |
Flow Services
Currently hosted services
Name | Description | Link |
---|---|---|
Landing |
The front page of the Flow Platform. |
|
Free Flow |
A single-user ActivityPub instance powered by GoToSocial. |
|
Code Flow |
The Flow Platform’s software forge powered by Forgejo. |
|
Work Flow |
A simple CI engine powered by Woodpecker. |
Mage targets
$ mage -l
Targets:
backup creates a backup of the specified service.
clean cleans the workspace.
deploy deploys the service(s) to the Flow Platform.
prepare prepares the service's build directory.
shutdown shuts down the Flow Platform in a given environment.
stop stops a running service within the Flow Platform.
Deployment guide
The config
directory contains the Flow Platform’s configuration (e.g. versions of hosted software, etc). It is a submodule of a hidden repository due to the sensitive nature of the configuration.
-
(Optional) Run
mage prepare <environment> <service>
to run preparations before deployment. Here the relevant files to run the service are downloaded, templates are rendered and static assets are copied to the build directory (if required). Step is optional because the 'deploy' stage automatically runs 'prepare' as a dependency. For example:mage prepare production forgejo
-
To deploy changes to Platform, run
mage deploy <environment> <service>
. The deploy target runs the prepare target as a dependency. For example:mage deploy production forgejo
Backup Guide
There is support for backing up the data for some of the services, e.g. forgejo
. You can use mage to run the backup for a specific service.
mage backup production forgejo
Here mage will stop the running service and recreate the container running the specific backup script for that service. If there is no backup support for a particular service mage will inform you of this.
$ mage backup production traefik
Backup is not supported for "traefik".
Currently the service will not automatically resume after the backup is completed but you can achieve this with a chain command.
mage backup production forgejo && mage deploy production forgejo