-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.23 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
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: ["rancher/k3s"]
version: ["v1.28.11-k3s2", "v1.29.6-k3s2", "v1.30.2-k3s2"]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup UDS
if: always()
uses: defenseunicorns/uds-common/.github/actions/setup@e7c0643d3f9d74ce49c7386b48964d2be646d726 # v0.10.0
with:
username: ${{secrets.IRON_BANK_ROBOT_USERNAME}}
password: ${{secrets.IRON_BANK_ROBOT_PASSWORD}}
# Step is not currently being used, could be uncommented if custom image support is needed in the future
# - 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