<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 1, 2018 at 9:57 AM, Laura Ekstrand <span dir="ltr"><<a href="mailto:laura@jlekstrand.net" target="_blank">laura@jlekstrand.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto">Daniel,</div><div dir="auto"><br></div><div dir="auto">I literally just followed the example:</div><div dir="auto"><br></div><a href="https://docs.gitlab.com/ee/ci/yaml/#pages" target="_blank">https://docs.gitlab.com/ee/ci/<wbr>yaml/#pages</a><div dir="auto"><br></div><div dir="auto">As I recall, there's a recursive loop if you don't use .public.</div></div></blockquote><div><br></div><div>Ah, I see what's going on.  The glob character "*" will list all directories that don't have a . so "cp * public" will turn into "cp thing1 thing2 public thing3 public" and cp will explode.  In this very simple case, I think we can not run cp at all and just do</div><div><br></div><div>pages:<br>
   stage: deploy<br>
   script:<br></div><div>
   - cp docs public<br></div><div>
   artifacts:<br>
     paths:<br>
     - public</div><div><br></div><div>or possibly even:</div><div><br></div><div><div>pages:<br>
   stage: deploy<br>
   script:<br></div><div>
   artifacts:<br>
     paths:<br></div><div>
     - docs</div><div><br></div><div>Though I think having a cp in there is a good idea.<br></div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Fri, Jun 1, 2018, 4:17 AM Daniel Stone <<a href="mailto:daniel@fooishbar.org" target="_blank">daniel@fooishbar.org</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi,<br>
<br>
On 1 June 2018 at 11:23, Eric Engestrom <<a href="mailto:eric.engestrom@intel.com" rel="noreferrer" target="_blank">eric.engestrom@intel.com</a>> wrote:<br>
> On Friday, 2018-06-01 11:16:29 +0100, Daniel Stone wrote:<br>
>> <a href="https://docs.gitlab.com/ee/user/project/pages/introduction.html" rel="noreferrer noreferrer" target="_blank">https://docs.gitlab.com/ee/<wbr>user/project/pages/<wbr>introduction.html</a><br>
>> > Be aware that Pages are by default branch/tag agnostic and their<br>
>> > deployment relies solely on what you specify in .gitlab-ci.yml. If<br>
>> > you don't limit the pages job with the only parameter, whenever<br>
>> > a new commit is pushed to whatever branch or tag, the Pages will be<br>
>> > overwritten.<br>
><br>
> Hmm, so that means we can't get MRs to build artifacts?<br>
> Is there a way to say "build: always; deploy: only: master"?<br>
<br>
Right, it's a little awkward, but still possible:<br>
<a href="https://docs.gitlab.com/ee/user/project/pages/getting_started_part_four.html#stages" rel="noreferrer noreferrer" target="_blank">https://docs.gitlab.com/ee/<wbr>user/project/pages/getting_<wbr>started_part_four.html#stages</a><br>
<br>
Basically, in master you build to and capture 'public', and off master<br>
you build to and capture another path. If you don't have an artifact<br>
with public/ in it, the site won't get updated, but you can still pull<br>
the artifacts.<br>
<br>
(I'd typed out roughly the same thing before thinking 'there must be a<br>
better way' and finding the docs. The only difference is that I'd had<br>
separate build/deploy stages to avoid duplicating the build<br>
instructions.)<br>
<br>
Cheers,<br>
Daniel<br></div></div><span class="">
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" rel="noreferrer" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</span></blockquote></div>
<br>______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
<br></blockquote></div><br></div></div>