Compare commits
1 Commits
Redhat8-K8
...
a32a6c9c0c
| Author | SHA1 | Date | |
|---|---|---|---|
| a32a6c9c0c |
31
.drone.yml
31
.drone.yml
@@ -11,40 +11,15 @@ volumes:
|
|||||||
name: flexvolsmb-drone-scratch
|
name: flexvolsmb-drone-scratch
|
||||||
|
|
||||||
steps:
|
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)
|
- name: Build CAPV image(s)
|
||||||
image: bv11-cr01.bessems.eu/library/packer-extended
|
image: k8s.gcr.io/scl-image-builder/cluster-node-image-builder-amd64:v0.1.11
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
jq '.password="'"$VSPHERE_PASSWORD"'"' ./packer/ova/vsphere.json > /tmp/vsphere.json && \
|
ls -lash
|
||||||
mv /tmp/vsphere.json ./packer/ova/vsphere.json
|
|
||||||
jq '.repo_username="'"$REPO_USERNAME"'" | .repo_password="'"$REPO_PASSWORD"'"' --null-input > /tmp/extra_vars.json
|
|
||||||
- |
|
- |
|
||||||
make deps-ova
|
make build-node-ova-vsphere-ubuntu-2204
|
||||||
- |
|
|
||||||
make build-node-ova-vsphere-rhel-8
|
|
||||||
- |
|
|
||||||
mv -fv ./output/**/*.ova /output
|
|
||||||
environment:
|
environment:
|
||||||
IB_OVFTOOL: true
|
|
||||||
IB_OVFTOOL_ARGS: --allowExtraConfig
|
|
||||||
PACKER_FLAGS: -on-error=ask
|
|
||||||
PACKER_VAR_FILES: /tmp/extra_vars.json
|
|
||||||
REPO_USERNAME:
|
|
||||||
from_secret: repo_username
|
|
||||||
REPO_PASSWORD:
|
|
||||||
from_secret: repo_password
|
|
||||||
RHSM_USER:
|
|
||||||
from_secret: rhsm_username
|
|
||||||
RHSM_PASS:
|
|
||||||
from_secret: rhsm_password
|
|
||||||
VSPHERE_PASSWORD:
|
VSPHERE_PASSWORD:
|
||||||
from_secret: vsphere_password
|
from_secret: vsphere_password
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ deps-osc:
|
|||||||
hack/ensure-packer.sh
|
hack/ensure-packer.sh
|
||||||
hack/ensure-goss.sh
|
hack/ensure-goss.sh
|
||||||
packer plugins install github.com/outscale/outscale
|
packer plugins install github.com/outscale/outscale
|
||||||
|
|
||||||
.PHONY: deps-gce
|
.PHONY: deps-gce
|
||||||
deps-gce: ## Installs/checks dependencies for GCE builds
|
deps-gce: ## Installs/checks dependencies for GCE builds
|
||||||
deps-gce:
|
deps-gce:
|
||||||
@@ -93,7 +93,7 @@ deps-gce:
|
|||||||
deps-ova: ## Installs/checks dependencies for OVA builds
|
deps-ova: ## Installs/checks dependencies for OVA builds
|
||||||
deps-ova:
|
deps-ova:
|
||||||
hack/ensure-ansible.sh
|
hack/ensure-ansible.sh
|
||||||
: hack/ensure-ansible-windows.sh
|
hack/ensure-ansible-windows.sh
|
||||||
hack/ensure-packer.sh
|
hack/ensure-packer.sh
|
||||||
hack/ensure-goss.sh
|
hack/ensure-goss.sh
|
||||||
hack/ensure-ovftool.sh
|
hack/ensure-ovftool.sh
|
||||||
@@ -494,7 +494,7 @@ $(OCI_VALIDATE_TARGETS): deps-oci
|
|||||||
packer validate $(PACKER_NODE_FLAGS) -var-file="$(abspath packer/oci/$(subst validate-oci-,,$@).json)" $(ABSOLUTE_PACKER_VAR_FILES) packer/oci/packer.json
|
packer validate $(PACKER_NODE_FLAGS) -var-file="$(abspath packer/oci/$(subst validate-oci-,,$@).json)" $(ABSOLUTE_PACKER_VAR_FILES) packer/oci/packer.json
|
||||||
|
|
||||||
.PHONY: $(OSC_BUILD_TARGETS)
|
.PHONY: $(OSC_BUILD_TARGETS)
|
||||||
$(OSC_BUILD_TARGETS): deps-osc
|
$(OSC_BUILD_TARGETS): deps-osc
|
||||||
packer build $(PACKER_NODE_FLAGS) -var-file="$(abspath packer/outscale/$(subst build-osc-,,$@).json)" $(ABSOLUTE_PACKER_VAR_FILES) packer/outscale/packer.json
|
packer build $(PACKER_NODE_FLAGS) -var-file="$(abspath packer/outscale/$(subst build-osc-,,$@).json)" $(ABSOLUTE_PACKER_VAR_FILES) packer/outscale/packer.json
|
||||||
|
|
||||||
.PHONY: $(OSC_VALIDATE_TARGETS)
|
.PHONY: $(OSC_VALIDATE_TARGETS)
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user