Difference between revisions of "Howto create a gitea repo and build an rpm"

From SME Server
Jump to navigationJump to search
Line 20: Line 20:
 
You should end up with a repo that looks like this:
 
You should end up with a repo that looks like this:
  
[[File:Screenshot from 2023-06-02 19-10-15.png|thumb]]
+
[[File:Screenshot from 2023-06-02 19-10-15.png]]
  
 
[[Category:Howto Developer]]
 
[[Category:Howto Developer]]

Revision as of 09:40, 3 June 2023

This page is to help with the creation and use of a git repo (hosted on the projects gitea server).

An "empty" repo can be created using a template which presets all the necessary directories and files.

Then the repo can be populated with files, code, etc and then a single call to `make mockbuild` will generate a local rpm which can then be installed in a test SMEServer for testing and validation.

After this the repo can be entered into the SMEServer build system and therefore built automatically when required (or updated). This is WIP and TBA.

Creating the Repo on the gitea Server

  1. login to the gitea server https://gitea.koozali.org
  2. Top right hand corner - "+" then repository
  3. Select the owner name or organisation
  4. Fill in name of Repo (typically smeserver-?????)
  5. Fill in description
  6. Select Template from Template field (currently only one - others will appear!!)
  7. Tick all the optional boxes for "Template Items" only the "Git Contents" might be necessary.
  8. Press submit

You should end up with a repo that looks like this:

Screenshot from 2023-06-02 19-10-15.png