-
Notifications
You must be signed in to change notification settings - Fork 40
33 lines (30 loc) 路 892 Bytes
/
Copy pathbackup.yml
File metadata and controls
33 lines (30 loc) 路 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Backup
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
MOLD_VERSION: 2.34.1
jobs:
backup_database:
name: Backup Database
permissions:
contents: read
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1
with:
mold-version: ${{ env.MOLD_VERSION }}
- name: Install `bencher` CLI
run: cargo install --debug --path services/cli --locked --force
- name: Backup API Server Database
run: |
bencher server backup \
--host https://api.bencher.dev \
--token ${{ secrets.BENCHER_API_TOKEN_ADMIN }} \
--compress \
--data-store aws_s3 \
--remove