-
Notifications
You must be signed in to change notification settings - Fork 20
53 lines (50 loc) · 1.38 KB
/
build-it.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
46
47
48
49
50
51
52
53
name: Build IT
on:
workflow_call:
inputs:
module:
required: true
type: string
kubeVersion:
required: true
type: string
env:
LANG: en_US.UTF-8
MAVEN_OPTS: -Xmx3000m
MAVEN_ARGS: -V -ntp -Dhttp.keepAlive=false -e
jobs:
build-it:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Project'
uses: actions/checkout@v3
- name: 'Set up JDK 11'
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: github
- name: "Download Maven Repo"
uses: actions/download-artifact@v3
with:
name: maven-repo-${{ github.run_id }}
path: ..
- name: "Extract Maven Repo"
shell: bash
run: |
df -h /
tar -xzf ../maven-repo.tgz -C ~
df -h /
- name: 'SetUp KinD'
uses: container-tools/kind-action@v2
with:
version: "v0.17.0"
kubectl_version: ${{ inputs.kubeVersion }}
registry: false
node_image: kindest/node:${{ inputs.kubeVersion }}
- name: 'SetUp Kubernetes Cluster'
run: |
kubectl apply -k ./etc/kubernetes/manifests/overlays/it --server-side --force-conflicts
- name: "Build ${{ inputs.module }}"
run: |
./mvnw ${MAVEN_ARGS} clean install -pl :${{ inputs.module }}