-
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.29.8-k3s1", "v1.30.4-k3s1", "v1.31.0-k3s1"]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup UDS
if: always()
uses: defenseunicorns/uds-common/.github/actions/setup@ea9db8ab9bfc4a5d87acd7d1af385aa8e44206d3 # v0.13.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