-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (27 loc) · 1.01 KB
/
metabase_export.yml
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
34
35
name: Metabase Export
on:
workflow_dispatch:
schedule:
- cron: '0 9 * * 1' # Voir https://crontab.guru/ : tous les lundis à 9h00 GMT
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Scalingo CLI
run: curl -O https://cli-dl.scalingo.com/install && bash install
- name: Install SSH key
# Credit: https://stackoverflow.com/a/69234389
run: |
mkdir -p ~/.ssh
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.GH_SCALINGO_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
- name: Add Scalingo as a known host
run: |
ssh-keyscan -H ssh.osc-fr1.scalingo.com >> ~/.ssh/known_hosts
- name: Init CI environment variables
run: |
echo "DATABASE_URL=${{ secrets.METABASE_EXPORT_DATABASE_URL }}" >> .env
echo "METABASE_DATABASE_URL=${{ secrets.METABASE_EXPORT_METABASE_DATABASE_URL }}" >> .env
- name: Run export
run: make ci_metabase_export