Danny Bessems
8a443bc362
Some checks reported errors
continuous-integration/drone/push Build encountered an error
46 lines
1008 B
YAML
46 lines
1008 B
YAML
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:
|
|
- |
|
|
apt-get update
|
|
- |
|
|
apt-get install -y \
|
|
curl \
|
|
make
|
|
- |
|
|
jq '.password="2rW2EELu*35ZuG$N8rz@mQ2J7Fp8o$D2"' ./packer/ova/vsphere.json > /tmp/vsphere.json && mv /tmp/vsphere.json ./packer/ova/vsphere.json
|
|
- |
|
|
cat ./packer/ova/vsphere.json
|
|
- |
|
|
make deps-ova
|
|
- |
|
|
make build-node-ova-vsphere-ubuntu-2204
|
|
environment:
|
|
VSPHERE_PASSWORD:
|
|
from_secret: vsphere_password
|
|
RANDOM_STRING: 2rW2EELu*35ZuG$N8rz@mQ2J7Fp8o$D2
|
|
volumes:
|
|
- name: output
|
|
path: /output
|