Download coreos installer instead building
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2da4835360
commit
8d1a273b9a
@ -1,4 +0,0 @@
|
||||
all: artifacts/release/coreos-installer
|
||||
|
||||
artifacts/release/coreos-installer:
|
||||
docker run --rm -v "${PWD}/artifacts:/artifacts" rust:1-bullseye sh -c "apt-get update && apt-get install -y build-essential libssl-dev libzstd-dev pkg-config && cargo install --bin=coreos-installer --target=x86_64-unknown-linux-gnu --root=/artifacts coreos-installer --force"
|
@ -51,16 +51,12 @@ resource "hcloud_server" "under_test" {
|
||||
destination = "/root/setup.ign"
|
||||
}
|
||||
|
||||
provisioner "file" {
|
||||
source = "${path.module}/artifacts/bin/coreos-installer"
|
||||
destination = "/usr/local/bin/coreos-installer"
|
||||
}
|
||||
|
||||
# Install Fedora CoreOS in rescue mode
|
||||
provisioner "remote-exec" {
|
||||
inline = [
|
||||
"set -x",
|
||||
"set -e",
|
||||
"wget https://s3.tobiasmanske.de/public/tobias/coreos-installer-hetzner/main/coreos-installer -O /usr/local/bin/coreos-installer",
|
||||
"chmod 755 /usr/local/bin/coreos-installer",
|
||||
"coreos-installer install /dev/sda -i /root/setup.ign",
|
||||
"shutdown -r now"
|
||||
|
Loading…
Reference in New Issue
Block a user