build_docker_image.sh
author Edouard Tisserant <edouard.tisserant@gmail.com>
Thu, 28 Jul 2022 16:54:04 +0200
changeset 68 8eb533b797be
parent 37 fd09116d3537
permissions -rwxr-xr-x
GH action : split workflows for later re-use of source provisioning.
#!/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 .