-
Notifications
You must be signed in to change notification settings - Fork 132
/
Copy pathpkg.yaml
32 lines (32 loc) · 940 Bytes
/
pkg.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
name: vmtoolsd-guest-agent
variant: scratch
shell: /bin/bash
# {{ if eq .ARCH "aarch64" }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
# VMWare doesn't support arm64
dependencies:
- stage: base
steps:
- prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/stub-manifest.yaml
- |
mkdir /rootfs
finalize:
- from: /pkg/stub-manifest.yaml
to: /manifest.yaml
- from: /rootfs
to: /rootfs
# {{ else }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
dependencies:
- stage: base
- image: {{ .BUILD_ARG_PKGS_PREFIX }}/talos-vmtoolsd:{{ .TALOS_VMTOOLSD_VERSION }}
from: /
to: /rootfs
steps:
- test:
- |
/extensions-validator validate --rootfs=/rootfs --pkg-name="${PKG_NAME}"
finalize:
- from: /rootfs
to: /
# {{ end }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr