-
Notifications
You must be signed in to change notification settings - Fork 69
46 lines (44 loc) · 1.36 KB
/
ci.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
name: Backup Restore CI
on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
jobs:
build:
name : CI
runs-on : ubuntu-latest
strategy:
matrix:
K8S_VERSION_FROM_CI : ["v1.24","stable"]
include:
- platform: linux/amd64
- platform: linux/arm64
steps:
- name : Checkout repository
uses : actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name : Setup up K3d
run : ./.github/workflows/e2e/scripts/install-k3d.sh
- name : Setup up mc
run : |
./.github/workflows/e2e/scripts/install-mc.sh
echo "$PWD/mc" >> $GITHUB_PATH
- name : Setup environment variables
run : echo "K8S_VERSION_FROM_CI=${{ matrix.K8S_VERSION_FROM_CI }}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name : CI
run : make ci
# TODO : add steps to validate ./dist/artifacts
# - name : Validate build assets
# run :
# TODO : setup K3d, create cluster, setup kube context, run integration tests
- name : Setup k3d cluster
run : CLUSTER_NAME=k3d ./.github/workflows/e2e/scripts/setup-cluster.sh
- name : Run integration tests
run : ./scripts/integration