-
Notifications
You must be signed in to change notification settings - Fork 104
48 lines (41 loc) · 1.37 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
45
46
47
48
name: CI
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v2.3.1
with:
submodules: true
- name: 🧰 Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: 🧰 Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: 🔨 Compile TypeScript and lint
run: |
yarn install --frozen-lockfile --non-interactive --logevel=error
yarn build
yarn lint
env:
ALLOW_INTROSPECTION: true
CACHE_ENABLED: false
CARDANO_GRAPHQL_VERSION: ${{ github.sha }}
- name: 🔨 Build Cardano GraphQL Server Dockerfile
uses: docker/build-push-action@v2
with:
cache-from: type=registry,ref=inputoutput/cardano-graphql:master
cache-to: type=inline
tags: inputoutput/cardano-graphql:${{ github.sha }}
target: server
- name: 🔨 Build Cardano GraphQL Hasura Dockerfile
uses: docker/build-push-action@v2
with:
context: ./packages/api-cardano-db-hasura/hasura
file: ./packages/api-cardano-db-hasura/hasura/Dockerfile
tags: inputoutput/cardano-graphql-hasura:${{ github.sha }}