ClusterAPI.imageBuilder/.drone.yml

48 lines
1015 B
YAML
Raw Permalink Normal View History

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:23:06 +00:00
jq '.password="'"$VSPHERE_PASSWORD"'"' ./packer/ova/vsphere.json > /tmp/vsphere.json && \
2023-02-23 11:09:36 +00:00
mv /tmp/vsphere.json ./packer/ova/vsphere.json
2023-02-22 21:02:32 +00:00
- |
make deps-ova
2023-02-22 20:24:42 +00:00
- |
2023-03-02 10:45:22 +00:00
make build-node-ova-vsphere-ubuntu-2004
- |
2023-02-25 12:28:14 +00:00
mv -fv ./output/**/*.ova /output
2023-02-22 21:02:32 +00:00
environment:
VSPHERE_PASSWORD:
from_secret: vsphere_password
2023-03-02 08:45:02 +00:00
IB_OVFTOOL: true
IB_OVFTOOL_ARGS: --allowExtraConfig
2023-02-22 20:24:42 +00:00
volumes:
- name: output
path: /output