Git Product home page Git Product logo

Comments (4)

siteshwar avatar siteshwar commented on August 13, 2024

GitHub supports service hooks for OBS. We need to generate an authentication token to authorize our service calls and add a hook for OBS in our repository.



Open Build Service(OBS) is a distribution build system.

By enabling this hook, any Open Build Service instance (running version 2.5 or higher) will list
to push events. OBS Source Service will get execute for a defined package which will update
the sources in OBS and therefore rebuild automatically.
Install Notes

    Prequire
    You need to have a package using a source service to update the sources.
    Check the OBS manual how to set this up.

    Create an authentification token for your account using "osc" commandline tool:
    osc token --create

    You may already specify the package here
    osc token --create PROJECT PACKAGE

    That means the token can only be used for this package. It also means you do not have
    to specify it in github.com. Just using the token is enough.

    Enter your credentials at github.com
        The token which got created (use "osc token" if you lost it)
        optional: Modify the api url, if you do not use the openSUSE Build Service instance.
        optional: Enter the project and package name in case you have a generic token.

    Make sure the "Active" checkbox is ticked, and click "Update Settings".

For more details about OBS, go to http://www.openbuildservice.org

from tweetian.

veskuh avatar veskuh commented on August 13, 2024

Currently tweetian sources has Dickson's API key that is intended only for development:
https://github.com/veskuh/Tweetian/blob/sailfish-port/qml/tweetian-harmattan/Constant.qml#L66
We should not build & distribute .rpm with that key.

I have created key for Sailfish Tweetian and use it when I've made a publicly available .rpm, but I wouldn't want to include it in the openly available sources.

Having OBS doing builds would be nice, but I wouldn't want API key to be public so we would need to figure out if that is possible. I haven't checked Mer OBS lately, but one option would be to have the API key as separate .patch file in OBS packaging if access to files in packaging can be limited to us developers.

from tweetian.

siteshwar avatar siteshwar commented on August 13, 2024

We will definitely solve this problem. I brought up this topic on IRC and here are few suggestions which came up during discussion :

  1. Do not include API keys in rpm packages. Instead download the keys when people run Tweetian for the first time on their devices.
  2. Do no include API keys in Tweetian's rpm package. Instead create a separate rpm package (on local system) which contains the keys, upload it to our Tweetian repository on OBS and add this package as dependency of Tweetian in .spec file. A project which does similar stuff can be seen at https://build.merproject.org/package/files?package=droid-hal-device&project=home%3Atswindell%3Ahw%3Atilapia

from tweetian.

siteshwar avatar siteshwar commented on August 13, 2024

After a discussion on IRC, we have reached to the conclusion that it's good enough to make releases of Tweetian every 2-3 weeks on https://openrepos.net/

You can get Tweetian's latests RPMs from https://openrepos.net/content/veskuh/tweetian-sailfish-os

from tweetian.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.