#!/bin/bash

source ./script_config.sh

if [ ! -d ./build ]; then
    git clone https://gitlab.com/soapbox-pub/rebased.git ./build
    cd ./build
else
    cd ./build
    git pull
fi

podman build -f Dockerfile --build-arg="BUILD_DATE=$DATE" --build-arg="VCS_REF=$REBASED_VER" -t $REBASED_IMG