Skip to content

Commit

Permalink
Update image-builder buildspec to use colo vsphere
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavmpandey08 committed Mar 6, 2024
1 parent 03ee8cf commit c79107e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions projects/kubernetes-sigs/image-builder/buildspecs/ova.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ env:
CLI_FOLDER: "projects/aws/image-builder"
GOPATH: "/home/imagebuilder/go"
secrets-manager:
GOVC_DATACENTER: "vsphere_dev_beta_connection:vsphere_datacenter"
GOVC_URL: "vsphere_dev_beta_connection:vsphere_url"
GOVC_USERNAME: "vsphere_dev_beta_connection:vsphere_username"
GOVC_PASSWORD: "vsphere_dev_beta_connection:vsphere_password"
VSPHERE_CONNECTION_DATA: "vsphere_dev_beta_connection:vsphere_connection_data"
GOVC_DATACENTER: "vsphere_colo_connection:vsphere_datacenter"
GOVC_URL: "vsphere_colo_connection:vsphere_url"
VSPHERE_IP: "vsphere_colo_connection:vsphere_ip"
GOVC_USERNAME: "vsphere_colo_connection:vsphere_username"
GOVC_PASSWORD: "vsphere_colo_connection:vsphere_password"
VSPHERE_CONNECTION_DATA: "vsphere_colo_connection:vsphere_connection_data"

phases:
pre_build:
run-as: root
commands:
- git config --global credential.helper '!aws codecommit credential-helper $@'
- git config --global credential.UseHttpPath true
- echo "${VSPHERE_IP} ${GOVC_URL}" >> /etc/hosts

build:
commands:
Expand Down

0 comments on commit c79107e

Please sign in to comment.