Skip to content

Commit

Permalink
fix(build): fix vagrant issue related to WinRM
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Nov 14, 2023
1 parent f4524ee commit 780991b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ on:
ANSIBLE_DEBUG:
type: choice
description: ANSIBLE_DEBUG (true, false)
default: "false"
options:
- "false"
- "true"
Expand All @@ -54,7 +53,6 @@ on:
build_upload:
type: choice
description: Upload release to Vagrant Cloud
default: "false"
options:
- "false"
- "true"
Expand Down Expand Up @@ -198,17 +196,20 @@ jobs:
set -euxo pipefail
# Remove unused packages to save some disk space
rm -rf /Users/runner/Library/Developer /Users/runner/Library/Android /Users/runner/hostedtoolcache /Users/runner/.dotnet
brew update
brew install bash coreutils gnu-sed jq packer hudochenkov/sshpass/sshpass vagrant
brew install ansible bash coreutils gnu-sed jq packer hudochenkov/sshpass/sshpass hashicorp/tap/hashicorp-vagrant
if [[ "${PACKER_VAGRANT_PROVIDER}" = "libvirt" ]]; then
brew install qemu xorriso
fi
if [[ "${PACKER_VAGRANT_PROVIDER}" = "virtualbox" ]]; then
brew install virtualbox
fi
# renovate: datasource=pypi depName=ansible
ANSIBLE_VERSION="8.1.0"
pip3 install ansible=="${ANSIBLE_VERSION}"
vagrant --version
packer --version
ansible --version
virtualbox --version
# # renovate: datasource=pypi depName=ansible
# ANSIBLE_VERSION="8.1.0"
# pip3 install ansible=="${ANSIBLE_VERSION}"
if [[ "${BUILD}" =~ windows ]]; then
# renovate: datasource=pypi depName=pywinrm
PYWINRM_VERSION="0.4.3"
Expand Down
2 changes: 2 additions & 0 deletions vagrant_init_destroy_boxes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ main() {
fi
test -d "${LOGDIR}" || mkdir -p "${LOGDIR}"

set -x

for VAGRANT_BOX_FILE in ${BOXES_LIST}; do
VAGRANT_BOX_NAME=$(basename "${VAGRANT_BOX_FILE%.*}")
export VAGRANT_BOX_NAME
Expand Down

0 comments on commit 780991b

Please sign in to comment.