[Mesa-dev] [PATCH v2 01/15] Added ci yaml file for Gitlab.

Daniel Stone daniel at fooishbar.org
Fri Jun 1 11:17:11 UTC 2018


Hi,

On 1 June 2018 at 11:23, Eric Engestrom <eric.engestrom at intel.com> wrote:
> On Friday, 2018-06-01 11:16:29 +0100, Daniel Stone wrote:
>> https://docs.gitlab.com/ee/user/project/pages/introduction.html
>> > Be aware that Pages are by default branch/tag agnostic and their
>> > deployment relies solely on what you specify in .gitlab-ci.yml. If
>> > you don't limit the pages job with the only parameter, whenever
>> > a new commit is pushed to whatever branch or tag, the Pages will be
>> > overwritten.
>
> Hmm, so that means we can't get MRs to build artifacts?
> Is there a way to say "build: always; deploy: only: master"?

Right, it's a little awkward, but still possible:
https://docs.gitlab.com/ee/user/project/pages/getting_started_part_four.html#stages

Basically, in master you build to and capture 'public', and off master
you build to and capture another path. If you don't have an artifact
with public/ in it, the site won't get updated, but you can still pull
the artifacts.

(I'd typed out roughly the same thing before thinking 'there must be a
better way' and finding the docs. The only difference is that I'd had
separate build/deploy stages to avoid duplicating the build
instructions.)

Cheers,
Daniel


More information about the mesa-dev mailing list