-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to using kres to manage project. Signed-off-by: Noel Georgi <[email protected]>
- Loading branch information
Showing
10 changed files
with
329 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2023-11-02T15:47:10Z by kres 32170a7-dirty. | ||
|
||
* | ||
!CHANGELOG.md | ||
!README.md | ||
!pkg.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
_out/ | ||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2023-11-02T15:50:53Z by kres latest. | ||
|
||
_out | ||
internal/extensions/image-digests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
--- | ||
kind: pkgfile.Build | ||
spec: | ||
targets: | ||
- amdgpu-firmware | ||
- amd-ucode | ||
- binfmt-misc | ||
- bnx2-bnx2x | ||
- btrfs | ||
- chelsio-drivers | ||
- chelsio-firmware | ||
- drbd | ||
- fuse3 | ||
- gasket-driver | ||
- gvisor | ||
- hello-world-service | ||
- i915-ucode | ||
- intel-ice-firmware | ||
- intel-ucode | ||
- iscsi-tools | ||
- nut-client | ||
- nvidia-container-toolkit | ||
- nvidia-fabricmanager | ||
- nvidia-open-gpu-kernel-modules | ||
- qemu-guest-agent | ||
- stargz-snapshotter | ||
- tailscale | ||
- thunderbolt | ||
- usb-modem-drivers | ||
- util-linux-tools | ||
- xe-guest-utilities | ||
- zfs | ||
additionalTargets: | ||
nonfree: | ||
- nonfree-kmod-nvidia | ||
extraBuildArgs: | ||
- TAG | ||
- PKGS | ||
useBldrPkgTagResolver: true | ||
--- | ||
kind: common.Build | ||
spec: | ||
ignoredPaths: | ||
- "internal/extensions/image-digests" | ||
--- | ||
kind: auto.CustomSteps | ||
spec: | ||
steps: | ||
- name: extensions | ||
toplevel: true | ||
- name: extensions-metadata | ||
toplevel: true | ||
- name: internal/extensions/image-digests | ||
toplevel: true | ||
- name: sign-images | ||
toplevel: true | ||
--- | ||
kind: custom.Step | ||
name: extensions | ||
spec: | ||
makefile: | ||
enabled: true | ||
phony: true | ||
variables: | ||
- name: EXTENSIONS_IMAGE_REF | ||
defaultValue: $(REGISTRY_AND_USERNAME)/extensions:$(TAG) | ||
- name: PKGS | ||
defaultValue: v1.6.0-alpha.0-26-g5f84302 | ||
depends: | ||
- internal/extensions/image-digests | ||
script: | ||
- | | ||
@$(MAKE) docker-$@ TARGET_ARGS="--tag=$(EXTENSIONS_IMAGE_REF) --push=$(PUSH)" | ||
--- | ||
kind: custom.Step | ||
name: extensions-metadata | ||
spec: | ||
makefile: | ||
enabled: true | ||
phony: true | ||
depends: | ||
- $(ARTIFACTS)/bldr | ||
script: | ||
- | | ||
@rm -f _out/extensions-metadata | ||
@$(foreach target,$(TARGETS),echo $(REGISTRY)/$(USERNAME)/$(target):$(shell $(ARTIFACTS)/bldr eval --target $(target) --build-arg TAG=$(TAG) '{{.VERSION}}' 2>/dev/null) >> _out/extensions-metadata;) | ||
@$(foreach target,$(NONFREE_TARGETS),echo $(REGISTRY)/$(USERNAME)/$(target):$(shell $(ARTIFACTS)/bldr eval --target $(target) --build-arg TAG=$(TAG) '{{.VERSION}}' 2>/dev/null) >> _out/extensions-metadata;) | ||
--- | ||
kind: custom.Step | ||
name: internal/extensions/image-digests | ||
spec: | ||
makefile: | ||
enabled: true | ||
phony: true | ||
depends: | ||
- extensions-metadata | ||
script: | ||
- | | ||
@cat _out/extensions-metadata | xargs -I{} sh -c 'echo {}@$$(crane digest {})' > internal/extensions/image-digests | ||
--- | ||
kind: custom.Step | ||
name: sign-images | ||
spec: | ||
makefile: | ||
enabled: true | ||
phony: true | ||
script: | ||
- | | ||
@for image in $(shell crane export $(EXTENSIONS_IMAGE_REF) | tar x --to-stdout image-digests) $(EXTENSIONS_IMAGE_REF)@$$(crane digest $(EXTENSIONS_IMAGE_REF)); do \ | ||
echo '==>' $$image; \ | ||
cosign verify $$image --certificate-identity-regexp '@siderolabs\.com$$' --certificate-oidc-issuer https://accounts.google.com || \ | ||
cosign sign --yes $$image; \ | ||
done |
Oops, something went wrong.