build_docker_image.sh
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sun, 31 Jul 2022 17:54:19 +0200
changeset 80 1088ce57d3c9
parent 37 fd09116d3537
permissions -rwxr-xr-x
Add (untested) snapcraft workflow for GitHub action. Add documentation about manual snapcraft invokation.
#!/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 .