-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (52 loc) · 1.29 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
name: CI
on:
push:
branches:
- main
- "release-*"
pull_request:
branches:
- main
- "release-*"
jobs:
test:
name: test
runs-on: ubuntu-latest
strategy:
matrix:
kubernetes_version:
[
v1.23.17-k3s1,
v1.24.17-k3s1,
v1.25.16-k3s4,
v1.26.15-k3s1,
v1.27.15-k3s2,
v1.28.11-k3s2,
]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "maven"
- name: Test
env:
KUBERNETES_VERSION: ${{ matrix.kubernetes_version }}
run: |
mvn verify
build-operator-bundle:
runs-on: ubuntu-latest
env:
IMG: ttl.sh/trustify-operator-${{ github.sha }}:2h
BUNDLE_IMG: ttl.sh/trustify-operator-bundle-${{ github.sha }}:2h
steps:
- uses: actions/checkout@v4
- run: DOCKERFILE=Dockerfile.jvm make docker-build docker-push
- run: make bundle-build bundle-push
run-ci:
needs: build-operator-bundle
uses: carlosthe19916/trustify-ci/.github/workflows/global-ci-bundle.yml@main
with:
operator_bundle: ttl.sh/trustify-operator-bundle-${{ github.sha }}:2h