Commit graph

293 commits

Author SHA1 Message Date
46c88b74c7
fix: return tmp dir in context creation test util to prolong
auto-cleanup

DESCRIPTION
    > Once the variable goes out of scope, the underlying file system resource is removed.
    https://docs.rs/mktemp/latest/mktemp/

    Return mktemp::Temp instance created to prolong lifetime and
    postpone auto-cleanup via Drop until the test suite runs to
    completion
2022-04-27 14:34:35 +05:30
101234e300
chore: convert check_status into macro to satisfy borrow checker 2022-04-27 13:47:46 +05:30
a787a48d41
feat: add methods to get current state of repositories 2022-04-27 13:47:21 +05:30
e757e52582
chore: tests-compatible logging and abstract repo initialization in settings 2022-04-27 11:50:06 +05:30
58e928eeda
feat: test utils init separate tmp dirs for deployed pages and assert status codes 2022-04-27 11:49:52 +05:30
68d63bba07
chore: load app settings via app ctx and do away with global static loader 2022-04-27 10:52:24 +05:30
624646f836
feat: add test utils 2022-04-27 10:51:39 +05:30
b758042836
feat: handle Git errors 2022-04-26 20:13:23 +05:30
eb87453bd1
feat: handle errors in deploy endpoint 2022-04-26 19:56:59 +05:30
4b43c4ed3d
fix: rename AccountNotFound to WebsiteNotFound 2022-04-26 19:56:31 +05:30
aa9cffd4cb
feat: setup error handling 2022-04-26 19:39:05 +05:30
0f9b8b25e3
feat: link to enough community ansible playbook 2022-04-19 02:33:21 +05:30
e966426186
chore: update deps and fix typo 2022-04-19 02:32:35 +05:30
325d110e9a
feat: switch to user configured branch even when configuration is changed
DESCRIPTION

Branch switching wasn't possible in earlier versions. If user deploys
"master" branch first and then wants to switch to "pages" branch, they
would have to delete the Pages-managed copy of the repository to
re-initialize the repository.

This patch introduces changes to switch to user configured branch on
startup and at each repository update.
2022-04-09 11:04:44 +05:30
609373786c
feat: tag docker img with version 0.1.0 2022-04-09 11:03:28 +05:30
38d43a0ea2
feat: add bare metal deployment instructions 2022-03-31 16:40:54 +05:30
70831b3055
feat: add nginx sample configuration to deploy Pages 2022-03-31 16:40:35 +05:30
55b7bf92bb
fix: set logging env var if unset 2022-03-29 19:16:38 +05:30
fc8f86a2af
docs: configuration through environment variables 2022-03-29 19:08:36 +05:30
1fe29fd9b2
fix: config loading order 2022-03-29 19:05:31 +05:30
c6f9cb7ac1
chore: update dep: config 2022-03-29 18:13:26 +05:30
e12c8989fb
feat: comment all configuration options 2022-03-29 18:03:32 +05:30
c76b351198
chore: improve git workflow testing 2022-03-29 18:02:32 +05:30
3c40a32fba
feat: expose source code url in build details meta endpoint 2022-03-29 17:38:29 +05:30
da98218d31
chore: update copyright notice 2022-03-29 17:36:22 +05:30
8b075a66fd
fix: get rid of useless configuraiton options 2022-03-29 17:35:44 +05:30
a5c8ee722d
chore: update realaravinth/actix-web and other deps 2022-03-29 16:58:10 +05:30
837c3fd3e0
chore: address clippy lints 2022-03-29 16:56:06 +05:30
ecdde15f2f
chore: update docker rust base img 2022-03-16 00:10:36 +05:30
ff6d70da96
chore: update deps 2022-03-16 00:09:18 +05:30
ef424cf070
make repository updates non-blocking 2021-10-30 15:37:24 +05:30
8cd9f0030d
configurable workers
This server will only see occasional traffic so it makes sense to spawn
only limited number of workers as opposed to spawning one worker/thread,
which is the default behavior.

I recommend at least two workers.
2021-10-30 15:30:38 +05:30
48e5672e15
CI: cache docker builds 2021-10-29 20:52:01 +05:30
ccaa50bfae
CI: build and publish docker images 2021-10-29 20:47:44 +05:30
eacb1b108a
package docker container 2021-10-29 20:38:56 +05:30
4d5f6ebd6f
add readme 2021-10-29 20:37:30 +05:30
067e0085c2
setup CI 2021-10-29 20:27:34 +05:30
6721b9672a
setup make 2021-10-29 20:24:20 +05:30
8f9b01fff2
add default configuration 2021-10-29 20:24:09 +05:30
954ac6c578
routes:
- get build metadata
    - authenticate and update repository with branch configuration
2021-10-29 20:23:07 +05:30
0846806958
generate build metadata 2021-10-29 20:22:44 +05:30
18aa800378
setup deps 2021-10-29 20:22:14 +05:30
390a8f603c
init 2021-10-29 20:21:46 +05:30