build_docker_image.sh
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sun, 14 Aug 2022 22:45:52 +0200
changeset 99 0623d6d4616b
parent 37 fd09116d3537
permissions -rwxr-xr-x
GH CD: chechout all projects, even self from prep_sources.yml so that revisions.txt is not too old for Makefile.
#!/bin/bash

set -e

OWNDIRBASENAME=$(basename $(cd $(dirname "${BASH_SOURCE[0]}") && pwd))

echo "Building docker image"
docker build \
    --build-arg UID=$(id -u) \
    --build-arg GID=$(id -g) \
    --build-arg OWNDIRBASENAME="$OWNDIRBASENAME" \
    -t beremiz_public_builder .