]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-website: Build PR checkouts 1865/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 2 Jul 2021 20:44:24 +0000 (16:44 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 2 Jul 2021 20:44:24 +0000 (16:44 -0400)
The previous way this was configured would only build branches from this repo; no forks.  When a PR is submitted from a fork, the job would just build main.  Oops.

Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-website/config/definitions/ceph-website.yml

index b49cf9ab766e9b46e34b45f2bb4dc17defdc4355..89d134de39d9c45e458013e622d47c7f928772df 100644 (file)
     scm:
       - git:
           url: https://github.com/ceph/ceph.io
+          branches:
+            - main
+            - origin/pr/${ghprbPullId}/merge
+          refspec: +refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*
           browser: auto
-          # The default is to build and publish every branch.
-          # Uncomment this for testing:
-          #branches:
-          #  - 'origin/master'
           skip-tag: true
           timeout: 20
           wipe-workspace: true