Commit Graph

2 Commits

Author SHA1 Message Date
Fintan Halpenny 6f25d73d3d build: remove quotes from rust-version
The script would include the quotes and so running `build/build` would
result in:

    $ build/build
    Running build..
    ✓ Radicle key already in ssh-agent
    Building Radicle 1.2.0..
    Creating archive of repository at e9cf91… in build/heartwood-e9cf91….tar.gz..
    Building image (radicle-build-1.2.0)..
    [1/2] STEP 1/17: FROM rust:"1.85"-alpine3.20 AS builder
    Error: creating build container: parsing reference "rust:\"1.85\"-alpine3.20": invalid reference format

Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
2025-06-02 12:28:08 +02:00
Fintan Halpenny 7dcfe45781 build: Dockerfile uses Rust version from `rust-toolchain.toml`
Instead of hardcoding the version of the Rust alpine file, introduce an `ARG` in
the `Dockerfile`. In `build/build`, we determine the version by inspecting
`rust-toolchain.toml`, and pass this value in. This ensures that the binaries
are built using the same toolchain that we develop with.
2025-05-30 11:17:39 +02:00