Git Product home page Git Product logo

template-declarations's Introduction

Open Terms Archive - template for declarations

How to use this template

This is a template for the declarations repository of Open Terms Archive

NOTE: When creating from this template, please keep the naming structure of ${instanceName}-declarations in order to keep consistency across repos and organisations.

In order to use it, follow this simple steps:

  • Navigate to https://github.com/OpenTermsArchive/template-declarations
  • Click on Use this template
  • Enter the name of the target repository ${instanceName}-declarations and the target organization
  • Edit this file by clicking on the Edit Button icon at the top right of this file (This icon is visible if you have the right to modify this repo)
  • Remove this paragraph and replace the ${instanceName}
  • Add any documentation you find necesary

You can also check the complete doc: How to use a template on Github

Then you need to

  • Follow the instructions to Continuous Deployment
  • Clone the repository you just created and named ${instanceName}-declarations
  • Launch ./init.sh ${instanceName} "${instanceMaintainer}" (instanceMaintainer being the name of the entity that will maintain the declarations)
  • Commit the files to git git add . && git commit -m "Initiate instance"

This will replace the corresponding variables in the files and remove the now useless files.

Continuous Deployment

For continuous deployment on your server, you need to define the following variables as GitHub secrets:

  • SERVER_FINGERPRINT: obtained with ssh-keyscan -H $serverAddress.
  • SERVER_SSH_KEY: a private SSH key allowed to connect to your server.

You can for example generate one on your server with ssh-keygen -q -N "" -f ~/.ssh/ota-deploy && cat ~/.ssh/ota-deploy.pub >> authorized_keys, and store the contents of ~/.ssh/ota-deploy as the SERVER_SSH_KEY secret.


License

The code in this repository is distributed under the GNU Affero General Public Licence (AGPL) v3.0.

template-declarations's People

Contributors

martinratinaud avatar clementbiron avatar mattisg avatar

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.