Mailinglist Archive: opensuse-buildservice (88 mails)

< Previous Next >
Re: [opensuse-buildservice] obs service github_tarballs
Am Tue, 26 Jun 2018 09:37:50 +0200
schrieb Christian <chris@xxxxxxxxxxxxxxxx>:

rebuild after creating a new 'tag' in github.

github might be able to do a 'osc service rr $prj $pkg', but it seems that OBS
lacks a concept of 'latest reachable tag from $branch' for the "revision"
parameter. At least it is not clear from /usr/lib/obs/service/tar_scm.service
how that should be done.

For the time being create the _service on the fly. If "latest_git_tag" changes
a new _service will be commited.

<services>
<service name="obs_scm">
<param name="filename">${pkg}</param>
<param name="revision">${latest_git_tag}</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://gitlab.com/${prj}/${pkg}.git</param>
<param name='versionformat'>%ci.%h</param>
</service>
<service mode="buildtime" name="tar">
<param name="obsinfo">${pkg}.obsinfo</param>
</service>
<service mode="buildtime" name="set_version">
<param name="basename">${pkg}</param>
</service>
</services>


Olaf
< Previous Next >
Follow Ups
References