#566 Documentation update for side-tags
Merged 4 years ago by lholecek. Opened 4 years ago by vmaljulin.
vmaljulin/greenwave side_tags_subj_id  into  master

@@ -225,7 +225,8 @@ 

  "containers" etc.), the git commit and package name (or rather the git

  repository name).

  

- For HTTP method, the remote rule URL is constructed based on ``HTTP_URL_TEMPLATE``

+ For HTTP method, the remote rule URL is constructed based on the URL template

  specified in Greenwave configuration. The URL template is something like::

  

      http://example.com/{pkg_namespace}{pkg_name}/raw/{rev}/f/gating.yaml

+ 

file modified
+6 -1
@@ -278,7 +278,7 @@ 

      REMOTE_RULE_POLICIES = {

          'brew-build-group': (

              'https://git.example.com/devops/greenwave-policies/side-tags/raw/

-             'master/{pkg_namespace}{pkg_name}.yaml'

+             'master/{subject_id}.yaml'

          ),

          '*': (

              'https://src.fedoraproject.org/{pkg_namespace}'
@@ -286,3 +286,8 @@ 

          )

      }

      KOJI_BASE_URL = 'https://koji.fedoraproject.org/kojihub'

+ 

+ In the URL templates the following parameters can be used: ``{pkg_name}``, ``{pkg_namespace}``

+ and ``{rev}``. Values for all of these parameters are being retrieved from Koji.

+ Parameter ``{subject_id}`` can also be used in URL template. If the subject identifier

+ contains a hash starting with the ``sha256:`` prefix, this prefix would be removed.

Can you update the example above so brew-build-group contains the subject_id?

rebased onto 035a64b

4 years ago

Can you update the example above so brew-build-group contains the subject_id?

Done

Pull-Request has been merged by lholecek

4 years ago