Correct me if I’m on the wrong track here, but I want to build my own Docker image during the pipelines and therefor need to clone the repository (Maybe this can be done before the Dockerfile, in gitlab-ci.yml?)
I’m trying to run something like this:
RUN git clone --progress https://$USER:$PASSWORD@gitlab.com/$REPOSITORY -b $BRANCH .
But I have failed to understand, how I can pass variables from the Gitlab runner into my Docker image?
(I can see some suggested topics on this, but none of them have any replies)