44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
#include "include/conf.h"
|
|
|
|
#include "include/deploy.h"
|
|
|
|
/*
|
|
* Structure:
|
|
*
|
|
* Where Deploy Identifier (DID) = blake2s(metadata.name + filename, [key=metadata.key]).hex()
|
|
*
|
|
* /var/cache/deployd/
|
|
* ... <did>/
|
|
* head/ (upstream branch)
|
|
* sources/ <- /home/user/sources
|
|
* build/ <- /home/user/build
|
|
* deploy.log
|
|
* tail/ (backup branch of `head`)
|
|
* sources/
|
|
* build/
|
|
* deploy.log
|
|
* tail.live/ (temporary, while backuping)
|
|
* sources/
|
|
* build/
|
|
* deploy.log
|
|
* live/ (temporary, while building/preparing/etc)
|
|
* sources/
|
|
* build/
|
|
* deploy.log
|
|
* /tmp/.deployd-<...>-lock (temporary, for locking)
|
|
*/
|
|
|
|
int sh_run_deploy(bool force_unlock,
|
|
const char *subcommand,
|
|
const char *buf,
|
|
const sh_Metadata *metadata,
|
|
const sh_PtrRange *sysadm,
|
|
uint8_t stages) {
|
|
(void)force_unlock;
|
|
(void)subcommand;
|
|
(void)buf;
|
|
(void)metadata;
|
|
(void)sysadm;
|
|
(void)stages;
|
|
return 1;
|
|
}
|