diff options
Diffstat (limited to 'ci/gate.yaml')
-rw-r--r-- | ci/gate.yaml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ci/gate.yaml b/ci/gate.yaml index 58f1fd6b5..fa872c90a 100644 --- a/ci/gate.yaml +++ b/ci/gate.yaml @@ -26,10 +26,15 @@ - functest-gerrit builders: - shell: | + case "{container}" in + "components") + args="" ;; + *) + args="--build-arg BRANCH=${{branch}}" ;; + esac cd docker/$(echo {container} |cut -d\- -f 2) - docker build \ - --pull=false --no-cache --force-rm=true \ - --build-arg BRANCH=${{branch}} \ + sudo docker build \ + ${{args}} --pull=false --no-cache --force-rm=true \ -t {repo}/functest-{container}:{tag} . - project: |