-
-
Notifications
You must be signed in to change notification settings - Fork 20
105 lines (86 loc) · 2.61 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Holy Lambda Pipeline
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Prepare java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 1.10.3.849
lein: 2.9.1
- name: Cache Maven
uses: actions/cache@v2
with:
path: |
~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
- name: Test the core
run: lein with-profile eftest eftest
build-images-amd64:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Login to Container Registry
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u FieryCod --password-stdin
- name: Setup Babashka
uses: turtlequeue/[email protected]
with:
babashka-version: 0.6.1
- name: Build images for amd64
run: |
cd docker && bb registry.clj "amd64" "CE"
- name: Build images for amd64 DEV
run: |
cd docker && bb registry.clj "amd64" "DEV"
build-images-aarch64:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Login to Container Registry
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u FieryCod --password-stdin
- name: Setup Babashka
uses: turtlequeue/[email protected]
with:
babashka-version: 0.6.1
- name: Install buildx
run: |
curl -Ls https://github.com/docker/buildx/releases/download/v0.6.3/buildx-v0.6.3.linux-amd64 > buildx
mkdir -p ~/.docker/cli-plugins && mv buildx ~/.docker/cli-plugins/docker-buildx
docker run --privileged --rm tonistiigi/binfmt --install all
chmod a+x ~/.docker/cli-plugins/docker-buildx
docker buildx install
- name: Build images for aarch64 CE
run: |
cd docker && bb registry.clj "aarch64" "CE"
- name: Build images for aarch64 DEV
run: |
cd docker && bb registry.clj "aarch64" "DEV"