ClusterAPI.imageBuilder/.drone.yml

44 lines
937 B
YAML
Raw 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-02-23 12:24:15 +00:00
make build-node-ova-vsphere-ubuntu-2204 FOREGROUND=1 PACKER_LOG=1
2023-02-22 21:02:32 +00:00
environment:
VSPHERE_PASSWORD:
from_secret: vsphere_password
2023-02-22 20:24:42 +00:00
volumes:
- name: output
path: /output