-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 1.14 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
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.13-k3s1", "v1.28.9-k3s1", "v1.29.4-k3s1"]
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Setup UDS
if: always()
uses: defenseunicorns/uds-common/.github/actions/setup@b2e8b25930c953ef893e7c787fe350f0d8679ee2 # v0.4.2
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}} --no-progress
- name: Create and deploy the uds-k3d package
run: uds run --set IMAGE_NAME=${{matrix.image}} --set VERSION=${{matrix.version}} --no-progress
- name: Validate uds-k3d package
run: uds run validate --no-progress