Download coreos installer instead building
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Manske 2022-10-30 00:33:24 +02:00
parent 2da4835360
commit 8d1a273b9a
Signed by: tobias
GPG Key ID: E83C743C1FC2F79A
2 changed files with 1 additions and 9 deletions

View File

@ -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"

View File

@ -51,16 +51,12 @@ resource "hcloud_server" "under_test" {
destination = "/root/setup.ign" 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 # Install Fedora CoreOS in rescue mode
provisioner "remote-exec" { provisioner "remote-exec" {
inline = [ inline = [
"set -x", "set -x",
"set -e", "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", "chmod 755 /usr/local/bin/coreos-installer",
"coreos-installer install /dev/sda -i /root/setup.ign", "coreos-installer install /dev/sda -i /root/setup.ign",
"shutdown -r now" "shutdown -r now"