Skip to content

Commit c3925a5

Browse files
committed
feat: update for ATE
1 parent 890e668 commit c3925a5

File tree

15 files changed

+116
-658
lines changed

15 files changed

+116
-658
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/CLEVER_CLOUD.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Clever Cloud deployment
2+
3+
## Setup
4+
5+
### Clever Cloud interface
6+
7+
Create 1 Rust applications with the `XS` plan:
8+
* `vaultwarden`
9+
10+
And 1 PostgreSQL databases (version 12) with any plan that you will binding to each app accordingly:
11+
* `vaultwarden`
12+
13+
Add 1 FS Bucket addons:
14+
* `vaultwarden`
15+
16+
_(depending on when you created those addonds, don't forget to bind them to the appropriate application)_
17+
18+
Now set for the app these options:
19+
* Zero downtime deployment
20+
* Enable dedicated build instance: `XL`
21+
* Cancel ongoing deployment on new push
22+
* Force HTTPS
23+
24+
Adjust the domain names as you want, and configure the environment variables as follow:
25+
* `CC_FS_BUCKET`: [GENERATED] _(can be retrieved from the FS Bucket addons and use `/data:` as local folder)_
26+
* `CC_POST_BUILD_HOOK`: `clevercloud/post_build_hook.sh`
27+
* `DATABASE_URL`: [GENERATED] _(provided by the interface, but you must add as query parameter `sslmode=prefer`)_
28+
* `ORG_GROUPS_ENABLED`: `true`
29+
* `ROCKET_PORT`: `8080`
30+
* `ADMIN_TOKEN`: [SECRET] _(for detail see the [wiki](https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page#secure-the-admin_token))_
31+
32+
### GitHub interface
33+
34+
#### GitHub Actions
35+
36+
Configure the following repository secrets (not environment ones):
37+
38+
- `CLEVER_APP_ID`: [GENERATED] _(format `app_{uuid}`, can be retrieved into the Clever Cloud interface)_
39+
- `CLEVER_TOKEN`: [GENERATED] _(can be retrieved from `clever login`, but be warned it gives wide access)_
40+
- `CLEVER_SECRET`: [GENERATED] _(can be retrieved from `clever login`, but be warned it gives wide access)_
41+
42+
## Upgrade Vaultwarden version
43+
44+
1. Synchronize your fork with the original repository
45+
2. Search for the specific commit representing the wanted version
46+
3. Rebase your `deploy` branche to it while making sure to not take third-party files into `.github`. Makes also sure to keep local changes in `build.rs` and `Cargo.toml`
47+
4. Force-push the branch

.github/workflows/build.yml

Lines changed: 0 additions & 197 deletions
This file was deleted.

.github/workflows/clever-cloud.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Continuous Integration
2+
on:
3+
push:
4+
branches: deploy
5+
jobs:
6+
requirements:
7+
name: Continuous Integration
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
name: Fetch unshallow working copy
12+
with:
13+
fetch-depth: 0
14+
15+
- uses: 47ng/actions-clever-cloud@v1.3.1
16+
name: Deploy to Clever Cloud
17+
with:
18+
appID: ${{ secrets.CLEVER_APP_ID }}
19+
force: true
20+
quiet: true # disable copying into GitHub Actions all logs from Clever Cloud
21+
env:
22+
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
23+
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}

.github/workflows/hadolint.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)