-
Notifications
You must be signed in to change notification settings - Fork 16
41 lines (33 loc) · 951 Bytes
/
tinybird-cd.yml
File metadata and controls
41 lines (33 loc) · 951 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
34
35
36
37
38
39
40
41
name: Tinybird - CD Workflow
on:
push:
branches:
- main
- master
paths:
- 'tinybird/**'
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
TINYBIRD_HOST: ${{ secrets.TINYBIRD_HOST }}
TINYBIRD_TOKEN: ${{ secrets.TINYBIRD_TOKEN }}
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'tinybird'
services:
tinybird:
image: tinybirdco/tinybird-local:beta
ports:
- 7181:7181
steps:
- uses: actions/checkout@v3
- name: Install Tinybird CLI
run: curl https://tinybird.co | sh
- name: Build project
run: tb build
- name: Verify deployment
run: tb --cloud --host ${{ env.TINYBIRD_HOST }} --token ${{ env.TINYBIRD_TOKEN }} deploy --check
- name: Deploy to cloud
run: tb --cloud --host ${{ env.TINYBIRD_HOST }} --token ${{ env.TINYBIRD_TOKEN }} deploy