v0.43.1
This commit is contained in:
1 parent
5b6d4a7903
commit
4d1087e357
160 files changed
+2407
-1933
No files matched your search
@@ -7,7 +7,6 @@ COPY . .
|
||||
RUN if [ ! -f Cargo.lock ]; then cargo generate-lockfile; fi \
|
||||
&& cargo build --locked --release
|
||||
|
||||
|
||||
FROM debian:trixie-slim AS runtime-trixie
|
||||
|
||||
RUN apt-get update \
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
# RustProxy multi-arch OCI builder for RouterOS (cross-compiled, no QEMU rustc).
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
resolve_project_root() {
|
||||
@@ -39,8 +37,6 @@ PROJECT_ROOT="$(resolve_project_root)" || {
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Supports the invocation:
|
||||
# ENV_FILE=integrations/routeros-oci-build/.env bash integrations/routeros-oci-build/build-routeros-oci.sh push
|
||||
ENV_FILE="${ROUTEROS_OCI_ENV_FILE:-${ENV_FILE:-$SCRIPT_DIR/.env}}"
|
||||
if [[ "$ENV_FILE" != /* ]]; then
|
||||
ENV_FILE="$PROJECT_ROOT/$ENV_FILE"
|
||||
@@ -53,7 +49,6 @@ fi
|
||||
}
|
||||
|
||||
set -a
|
||||
# shellcheck disable=SC1090
|
||||
source "$ENV_FILE"
|
||||
set +a
|
||||
|
||||
@@ -72,7 +67,6 @@ VERSION="$(awk '
|
||||
' "$PROJECT_ROOT/Cargo.toml")"
|
||||
[[ -n "$VERSION" ]] || { echo "Cannot determine package version from Cargo.toml" >&2; exit 1; }
|
||||
|
||||
# Image: REGISTRY + IMAGE_NAME (or OCI_IMAGE shorthand).
|
||||
if [[ -n "${OCI_IMAGE:-}" ]]; then
|
||||
IMAGE_REPO="${OCI_IMAGE%/}"
|
||||
REGISTRY="${OCI_REGISTRY:-${IMAGE_REPO%%/*}}"
|
||||
|
||||
Reference in new issue
Block a user