-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.22 KB
/
build-test.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
name: Test UDS Capability
on:
pull_request:
paths-ignore:
- "**.md"
- "docs/**"
- "CODEOWNERS"
permissions:
id-token: write
contents: read
jobs:
test-clean-install:
runs-on: ubuntu-latest
strategy:
matrix:
image: ["ghcr.io/defenseunicorns/oss/uds-k3d-k3s"]
version: ["v1.27.11-k3s1", "v1.28.7-k3s1", "v1.29.2-k3s1"]
# Test the default image as well
include:
- image: "rancher/k3s"
version: "v1.27.4-k3s1"
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
- name: Setup UDS
if: always()
uses: defenseunicorns/uds-common/.github/actions/setup@b604d2e1b3fc69f29122f9a709c605f5ecf4da18 # v0.4.0
with:
username: ${{secrets.IRON_BANK_ROBOT_USERNAME}}
password: ${{secrets.IRON_BANK_ROBOT_PASSWORD}}
- name: Build the custom k3s image
if: ${{matrix.image}} != "rancher/k3s"
run: uds run build-image --set VERSION=${{matrix.version}}
- name: Create and deploy the uds-k3d package
run: uds run --set IMAGE_NAME=${{matrix.image}} --set VERSION=${{matrix.version}}
- name: Validate uds-k3d package
run: uds run validate