2023-02-22 20:24:42 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: 'CAPI ImageBuilder'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: output
|
|
|
|
claim:
|
|
|
|
name: flexvolsmb-drone-output
|
|
|
|
- name: scratch
|
|
|
|
claim:
|
|
|
|
name: flexvolsmb-drone-scratch
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Debugging information
|
|
|
|
image: bv11-cr01.bessems.eu/library/packer-extended
|
|
|
|
commands:
|
|
|
|
- ansible --version
|
|
|
|
- ovftool --version
|
|
|
|
- packer --version
|
|
|
|
- yamllint --version
|
|
|
|
- name: Build CAPV image(s)
|
|
|
|
image: bv11-cr01.bessems.eu/library/packer-extended
|
|
|
|
pull: always
|
|
|
|
commands:
|
2023-02-22 20:29:00 +00:00
|
|
|
- |
|
|
|
|
apt-get update
|
|
|
|
- |
|
|
|
|
apt-get install -y \
|
2023-02-22 20:31:52 +00:00
|
|
|
curl \
|
2023-02-22 20:29:00 +00:00
|
|
|
make
|
2023-02-22 21:02:32 +00:00
|
|
|
- |
|
2023-02-23 11:00:12 +00:00
|
|
|
jq '.password="2rW2EELu*35ZuG$N8rz@mQ2J7Fp8o$D2"' ./packer/ova/vsphere.json > /tmp/vsphere.json && mv /tmp/vsphere.json ./packer/ova/vsphere.json
|
2023-02-23 08:51:04 +00:00
|
|
|
- |
|
|
|
|
cat ./packer/ova/vsphere.json
|
2023-02-22 21:02:32 +00:00
|
|
|
- |
|
|
|
|
make deps-ova
|
2023-02-22 20:24:42 +00:00
|
|
|
- |
|
2023-02-22 20:39:07 +00:00
|
|
|
make build-node-ova-vsphere-ubuntu-2204
|
2023-02-22 21:02:32 +00:00
|
|
|
environment:
|
|
|
|
VSPHERE_PASSWORD:
|
|
|
|
from_secret: vsphere_password
|
2023-02-23 08:51:04 +00:00
|
|
|
RANDOM_STRING: 2rW2EELu*35ZuG$N8rz@mQ2J7Fp8o$D2
|
2023-02-22 20:24:42 +00:00
|
|
|
volumes:
|
|
|
|
- name: output
|
|
|
|
path: /output
|