-
Notifications
You must be signed in to change notification settings - Fork 8
103 lines (94 loc) · 2.72 KB
/
build-chart.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
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
name: Operator Build
on:
workflow_call:
inputs:
paladin-image:
required: true
type: string
paladin-image-tag:
required: true
type: string
operator-image:
required: true
type: string
operator-image-tag:
required: true
type: string
build-operator:
required: false
type: boolean
default: false
build-paladin:
required: false
type: boolean
default: false
workflow_dispatch:
inputs:
paladin-image:
required: true
type: string
paladin-image-tag:
required: true
type: string
operator-image:
required: true
type: string
operator-image-tag:
required: true
type: string
build-operator:
required: false
type: boolean
default: false
build-paladin:
required: false
type: boolean
default: false
jobs:
operator-build:
runs-on: ubuntu-latest
env:
CLUSTER_NAME: paladin
NAMESPACE: paladin
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Install pre-requisites
uses: ./.github/actions/setup
- name: Install Kind
uses: helm/kind-action@v1
with:
install_only: true # only install kind, the cluster creation is managed by the deploy step
ignore_failed_clean: true
- name: Download docker artifacts
uses: actions/download-artifact@v4
with:
path: /tmp # download all docker images to /tmp
pattern: paladin-*
merge-multiple: true
- name: Load image
run: |
docker load --input /tmp/paladin-operator-${{ github.sha }}.tar
docker load --input /tmp/paladin-${{ github.sha }}.tar
docker image ls -a
# The makefile uses kustomize
- uses: imranismail/setup-kustomize@v2
- name: Deploy Operator
run: |
./gradlew deploy \
-PclusterName=${{ env.CLUSTER_NAME }} \
-Pnamespace=${{ env.NAMESPACE }} \
-PbuildOperator=${{ inputs.build-operator }} \
-PbuildPaladin=${{ inputs.build-paladin }} \
-PoperatorImageName=${{ inputs.operator-image }} \
-PoperatorImageTag=${{ inputs.operator-image-tag }} \
-PpaladinImageName=${{ inputs.paladin-image }} \
-PpaladinImageTag=${{ inputs.paladin-image-tag }}
- name: Uninstall Operator
run: |
./gradlew clean \
-PclusterName=${{ env.CLUSTER_NAME }} \
-Pnamespace=${{ env.NAMESPACE }} \
-PdeleteCluster=true