-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.03 KB
/
CI.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
36
37
38
39
40
41
42
43
44
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch: # for Github Button to trigger workflow
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
jobs:
build-and-test:
name: "build and test"
uses: ./.github/workflows/build-and-test.yml
# type-linting:
# name: "type linting"
# uses: ./.github/workflows/type-linting.yml
quality-checks:
name: "quality checks"
uses: ./.github/workflows/quality-checks.yml
build-docker-image:
name: "build docker image"
uses: ./.github/workflows/build-docker-image.yml
deploy-to-fly-io:
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
name: "deploy to fly.io"
# needs: [build-and-test, type-linting, quality-checks, build-docker-image]
needs: [build-and-test, quality-checks, build-docker-image]
uses: ./.github/workflows/deploy-to-fly-io.yml
secrets:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}