-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.6 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
45
46
47
48
49
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install UDS CLI
uses: defenseunicorns/setup-uds@b987a32bac3baeb67bfb08f5e1544e2f9076ee8a # v1.0.0
with:
# renovate: datasource=github-tags depName=defenseunicorns/uds-cli versioning=semver
version: v0.19.1
- name: Environment setup
run: |
uds run actions:setup-environment \
--set REGISTRY1_USERNAME="${{ secrets.IRON_BANK_ROBOT_USERNAME }}" \
--set REGISTRY1_PASSWORD="${{ secrets.IRON_BANK_ROBOT_PASSWORD }}" \
--set GH_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
--set CHAINGUARD_IDENTITY="${{ secrets.CHAINGUARD_IDENTITY }}"
shell: bash
# 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