Skip to content

Commit

Permalink
ci: set custom k3s image (#292)
Browse files Browse the repository at this point in the history
## Description
Takes advantage of custom k3s image to deploy more recent K3s releases.

Relates to defenseunicorns/uds-k3d#55

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Other (security config, docs update, etc)

## Checklist before merging

- [ ] Test, docs, adr added or updated as needed
- [ ] [Contributor Guide
Steps](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)(https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md#submitting-a-pull-request)
followed
  • Loading branch information
rjferguson21 authored Mar 26, 2024
1 parent 3a63e2a commit 7f82ba4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ variables:

- name: PKG

- name: K3D_IMAGE
default: "ghcr.io/defenseunicorns/oss/uds-k3d-k3s:v1.28.7-k3s1"

includes:
- create: ./tasks/create.yaml
- setup: ./tasks/setup.yaml
Expand Down
4 changes: 2 additions & 2 deletions tasks/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ tasks:
- name: k3d-standard-bundle
actions:
- description: "Deploy the UDS Core Standard Bundle"
cmd: uds deploy bundles/k3d-standard/uds-bundle-k3d-core-demo-${UDS_ARCH}-${VERSION}.tar.zst --confirm --no-progress
cmd: uds deploy bundles/k3d-standard/uds-bundle-k3d-core-demo-${UDS_ARCH}-${VERSION}.tar.zst --set=uds-k3d-dev.K3D_IMAGE=${K3D_IMAGE} --confirm --no-progress

- name: k3d-slim-dev-bundle
actions:
- description: "Deploy the UDS Core Slim Dev Only Bundle"
cmd: uds deploy bundles/k3d-slim-dev/uds-bundle-k3d-core-slim-dev-${UDS_ARCH}-${VERSION}.tar.zst --confirm --no-progress
cmd: uds deploy bundles/k3d-slim-dev/uds-bundle-k3d-core-slim-dev-${UDS_ARCH}-${VERSION}.tar.zst --set=uds-k3d-dev.K3D_IMAGE=${K3D_IMAGE} --confirm --no-progress

- name: single-package
actions:
Expand Down
2 changes: 1 addition & 1 deletion tasks/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ tasks:
actions:
- description: "Create the K3d cluster"
# renovate: datasource=github-tags depName=defenseunicorns/uds-k3d versioning=semver
cmd: "uds zarf package deploy oci://defenseunicorns/uds-k3d:0.5.0 --confirm"
cmd: "uds zarf package deploy oci://defenseunicorns/uds-k3d:0.5.0 --set=K3D_IMAGE=${K3D_IMAGE} --confirm"

- name: k3d-test-cluster
actions:
Expand Down

0 comments on commit 7f82ba4

Please sign in to comment.