388941cd8a
We update our base image to Ubuntu 18.04, and update all of our dependencies to the latest released versions. This includes: - gcc-multilib-arm-linux-gnueabihf (latest distro version) - mdbook 0.2.1 (0.2.3 is out, but there's no binary build) - OpenSSL 1.1.1b - libpq 11.2
24 lines
531 B
Bash
Executable file
24 lines
531 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Abort if anything goes wrong.
|
|
set -euo pipefail
|
|
|
|
# Decide what Rust toolchain to use.
|
|
case "$DOCKER_TAG" in
|
|
# Always map the Docker tags `latest` and `experimental` to stable Rust.
|
|
latest|experimental)
|
|
TOOLCHAIN=stable
|
|
;;
|
|
# Strip `experimental-` from other `experimental-*` tags.
|
|
experimental-*)
|
|
TOOLCHAIN="${DOCKER_TAG/experimental-/}"
|
|
;;
|
|
# Pass all our tags
|
|
*)
|
|
TOOLCHAIN="$DOCKER_TAG"
|
|
;;
|
|
esac
|
|
|
|
# Run the build.
|
|
docker build --build-arg TOOLCHAIN="$TOOLCHAIN" -t "$IMAGE_NAME" .
|