- Added alias functions to all bin scripts using first-letter pattern (e.g., `av` for `activate-venv`, `cwl` for `commit-with-llm`) - Implemented collision resolution by extending aliases with additional letters when conflicts occur or when shadowing standard shell commands - Documented alias implementation approach in library.md with complete alias map for reference - Verified shell syntax with `bash -n` and ensured proper argument passing with `"$@"` - Updated prompt frontmatter to reflect completed state and model used (infomaniak/moonshotai/Kimi-K2.6)
23 lines
571 B
Bash
Executable File
23 lines
571 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
build-image() {
|
|
local dockerfile=${DOCKERFILE:="Dockerfile"}
|
|
|
|
local buildx_output="--push"
|
|
if [[ -n "$1" ]]; then
|
|
buildx_output="$1"
|
|
fi
|
|
|
|
echo "Building Docker image with output $buildx_output..."
|
|
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) docker buildx build . \
|
|
--file "$dockerfile" \
|
|
--platform "$BUILDX_PLATFORM" \
|
|
--tag "${CONTAINER_REGISTRY}/${CONTAINER_TAG}" \
|
|
--build-arg BUILDKIT_TIMEOUT=60m \
|
|
--progress=plain \
|
|
$buildx_output
|
|
}
|
|
bi() {
|
|
build-image "$@"
|
|
}
|