techno-tim / k3s-ansible

The easiest way to bootstrap a self-hosted High Availability Kubernetes cluster. A fully automated HA k3s etcd install with kube-vip, MetalLB, and more. Build. Destroy. Repeat.
https://technotim.live/posts/k3s-etcd-ansible/
Apache License 2.0
2.41k stars 1.05k forks source link

The download-boxes.sh script fails in CI on new forks #105

Closed devantler closed 2 years ago

devantler commented 2 years ago

Expected Behavior

I expect that the test.yaml pipeline can execute on forked repositories without error.

Current Behavior

The test.yaml pipeline fails when calling the download-boxes.sh script.

Steps to Reproduce

  1. Fork the repository.
  2. Run the pipelines

Context (variables)

Operating system: MacOS

Hardware: M1

Variables Used

None as it happens in CI.

Hosts

None as it happens during CI.

Repro

Check my fork for a failed action. There is not much info to gain from it, but it does prove that it fails on fresh forks: https://github.com/devantler/k3s-ansible/actions

Possible Solution

I think it might be related to caching, in case you have not cached any vagrant boxes, and it tries to download them with the script.

sleiner commented 2 years ago

Great catch, @devantler! I pushed a fix (and an explanation of the error) at #106 :-)

devantler commented 2 years ago

Thanks, that explains it :-) Happy to help!