build_docker_image.sh
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sat, 13 Aug 2022 17:00:47 +0200
changeset 88 58cff3acaf3d
parent 37 fd09116d3537
permissions -rwxr-xr-x
GH CD: attempt to preserve content of build/source by swapping checkout and artifact download steps.
#!/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 .