-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.11 KB
/
test.yaml
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
name: Test
on:
push:
branches-ignore:
- "main" # all branches except main
jobs:
test:
name: Test docker build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build client
uses: docker/build-push-action@v2
with:
tags: toiki-build
push: false
context: ./client
cache-from: type=registry,ref=ghcr.io/toiki-org/toiki-build:latest
cache-to: type=inline
build-args: |
ARCH=linux/amd64
API_AUTHORITY=${{ secrets.API_AUTHORITY }}
- name: Build server
uses: docker/build-push-action@v2
with:
tags: toiki-server
push: false
context: ./server
cache-from: type=registry,ref=ghcr.io/toiki-org/toiki-backend:latest
cache-to: type=inline
- name: Build bot
uses: docker/build-push-action@v2
with:
tags: toiki-bot
push: false
context: ./bot
cache-from: type=registry,ref=ghcr.io/toiki-org/toiki-bot:latest
cache-to: type=inline