My objective is to build a container image from git, but only from a specific branch. In order to do that, in my build.yaml, I have to specify the uri of the git branch:
spec:
output:
to:
kind: ImageStreamTag
name: superset-custom-exporter:latest
source:
git:
uri: https://gitlab.cee.domain.com/repo-org/repo-name.git
type: Git
This will fetch the master branch, however, I want the superset-custom-exporter branch. How do I do that?
I tried testing the certain URLs[1] through web and through the command git clone, all of them failed.
- adding branch name after
# - using the exact web url