Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: zarf file #39

Merged
merged 10 commits into from
Apr 2, 2024
Merged
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ test.cer
test.csr
test.pem
*authorized_certs*
src/extra-jars/
11 changes: 11 additions & 0 deletions tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ tasks:
actions:
- cmd: docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ${IMAGE_NAME}:${VERSION} src

- name: build-multi-arch
description: "Build the multi-arch image"
actions:
- cmd: docker buildx build --platform linux/arm64/v8,linux/amd64 --tag ${IMAGE_NAME}:${VERSION} src
blancharda marked this conversation as resolved.
Show resolved Hide resolved

- name: build-zarf-pkg
description: "Build the custom docker image and the zarf package for transporting it"
actions:
- task: build-multi-arch
- cmd: ./uds zarf package create . --set IDENTITY_CONFIG_IMG=${IMAGE_NAME}:${VERSION} --confirm

- name: dev-build
description: "Build the image locally for dev"
actions:
Expand Down
16 changes: 16 additions & 0 deletions zarf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/zarf/main/zarf.schema.json
blancharda marked this conversation as resolved.
Show resolved Hide resolved
kind: ZarfPackageConfig
metadata:
name: keycloak-identity-config
version: "0.0.1"

constants:
- name: IDENTIFY_CONFIG_IMG
description: "Image name and tag (MUST BE PROVIDED -- no default)"
value: '###ZARF_PKG_TMPL_IDENTITY_CONFIG_IMG###'

components:
- name: keycloak-config-wrapper
required: true
images:
- '###ZARF_PKG_TMPL_IDENTITY_CONFIG_IMG###'
Loading