2021-06-10 07:10:53 -04:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
|
|
## This script is to be run before a Packer release in order to update
|
|
|
|
|
## all vendored plugins to the latest available release.
|
|
|
|
|
## The SDK is included in the plugin list and will be upgraded as well if a
|
|
|
|
|
## newest version is available.
|
|
|
|
|
## This script should be run in packer's root.
|
|
|
|
|
|
|
|
|
|
declare -a plugins=(
|
update amazon, azure, docker, gcp, outscale, qemu & vsphere plugins + deps (#11341)
* update amazon, azure, docker, gcp, outscale, qemu vsphere plugins + deps
* Update upgrade_plugins.sh
* Update upgrade_plugins.sh
* Update CHANGELOG.md
* Update prepare_changelog.sh
2021-10-19 08:41:37 -04:00
|
|
|
"hashicorp/packer-plugin-alicloud"
|
|
|
|
|
"hashicorp/packer-plugin-amazon"
|
|
|
|
|
"hashicorp/packer-plugin-ansible"
|
|
|
|
|
"hashicorp/packer-plugin-azure"
|
|
|
|
|
"hashicorp/packer-plugin-chef"
|
|
|
|
|
"hashicorp/packer-plugin-cloudstack"
|
|
|
|
|
"hashicorp/packer-plugin-converge"
|
2022-08-01 09:37:33 -04:00
|
|
|
"digitalocean/packer-plugin-digitalocean"
|
update amazon, azure, docker, gcp, outscale, qemu & vsphere plugins + deps (#11341)
* update amazon, azure, docker, gcp, outscale, qemu vsphere plugins + deps
* Update upgrade_plugins.sh
* Update upgrade_plugins.sh
* Update CHANGELOG.md
* Update prepare_changelog.sh
2021-10-19 08:41:37 -04:00
|
|
|
"hashicorp/packer-plugin-docker"
|
|
|
|
|
"hashicorp/packer-plugin-googlecompute"
|
|
|
|
|
"hashicorp/packer-plugin-hcloud"
|
|
|
|
|
"hashicorp/packer-plugin-hyperone"
|
|
|
|
|
"hashicorp/packer-plugin-hyperv"
|
|
|
|
|
"hashicorp/packer-plugin-jdcloud"
|
|
|
|
|
"hashicorp/packer-plugin-linode"
|
|
|
|
|
"hashicorp/packer-plugin-lxc"
|
|
|
|
|
"hashicorp/packer-plugin-lxd"
|
|
|
|
|
"hashicorp/packer-plugin-ncloud"
|
|
|
|
|
"hashicorp/packer-plugin-openstack"
|
|
|
|
|
"hashicorp/packer-plugin-oneandone"
|
|
|
|
|
"hashicorp/packer-plugin-parallels"
|
|
|
|
|
"hashicorp/packer-plugin-profitbricks"
|
|
|
|
|
"hashicorp/packer-plugin-proxmox"
|
|
|
|
|
"hashicorp/packer-plugin-puppet"
|
|
|
|
|
"hashicorp/packer-plugin-qemu"
|
|
|
|
|
"hashicorp/packer-plugin-sdk"
|
|
|
|
|
"hashicorp/packer-plugin-tencentcloud"
|
|
|
|
|
"hashicorp/packer-plugin-triton"
|
|
|
|
|
"hashicorp/packer-plugin-ucloud"
|
|
|
|
|
"hashicorp/packer-plugin-vagrant"
|
|
|
|
|
"hashicorp/packer-plugin-virtualbox"
|
|
|
|
|
"hashicorp/packer-plugin-vmware"
|
|
|
|
|
"hashicorp/packer-plugin-vsphere"
|
|
|
|
|
"hashicorp/packer-plugin-yandex"
|
2021-06-10 07:10:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
## now loop through the above plugin array
|
|
|
|
|
## update the plugins and the SDK to the latest available version
|
|
|
|
|
for i in "${plugins[@]}"
|
|
|
|
|
do
|
|
|
|
|
happy=false
|
|
|
|
|
while ! $happy
|
|
|
|
|
do
|
|
|
|
|
echo "upgrading $i"
|
update amazon, azure, docker, gcp, outscale, qemu & vsphere plugins + deps (#11341)
* update amazon, azure, docker, gcp, outscale, qemu vsphere plugins + deps
* Update upgrade_plugins.sh
* Update upgrade_plugins.sh
* Update CHANGELOG.md
* Update prepare_changelog.sh
2021-10-19 08:41:37 -04:00
|
|
|
output=$(go get -d github.com/$i)
|
2021-06-10 07:10:53 -04:00
|
|
|
happy=true
|
|
|
|
|
if [[ $output == *"443: Connection refused"* ]]; then
|
|
|
|
|
echo "Try again after 5 seconds"
|
|
|
|
|
sleep 5
|
|
|
|
|
happy=false
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
sleep 1
|
|
|
|
|
done
|
|
|
|
|
|
2022-08-18 09:41:29 -04:00
|
|
|
go mod tidy -compat=1.18
|