Git Product home page Git Product logo

release's Introduction

This project is based on the works of HMRC from

https://github.com/hmrc/release

Improvements

  1. No need to download the project to release/tag. Done remotely in GitHub.
  2. Use of native Python Libs for GitHub and Jenkins.
  3. Creates a pipeline to tag, build and deploy the app in several Envs (only QA by now)

Releasing an artifact

This repo provides a script that allows to tag a git repository:

It looks if the specified build completed successfully

  1. Gets the commit id from the build
  2. Suggests you the new version
  3. Tags the repository

Prepare the environment

Set up your local configuration by creating a file ~/.hmrc/release.conf which is a json formatted file that should look like this:

{
    "jenkins":"https://ci-dev...",
    "jenkins_build": "https://ci-build...",
    "jenkins_qa": "https://deploy-qa...",
    "jenkins_staging": "https://deploy-staging...",
    "github_api": "https://github.../api/v3",
    "git_username": "jose-taboada",
    "git_email": "jose.taboada@...",
    "git_token": "69...",
    "jenkins_user":"jose.taboada",
    "jenkins_key":"<dev-key>",
    "jenkins_build_key": "<build-key>",
    "jenkins_qa_key": "<QA-key>",
    "jenkins_qa_key": "<Staging-key>"
}

How to create Git token: Add repo and admin:org profiles

In addition to that you need some python libraries (setup pip and virtualenv if needed) $ virtualenv virtual_release $ source virtual_release/bin/activate $ pip install -r requirements.txt

Release

./bin/mdtp.py release 'app' 'env' ./bin/mdtp.py deploy 'app' 'version' 'env'

'env' could be: dev, qa, staging or prod License

This code is open source software licensed under the Apache 2.0 License.

release's People

Contributors

joseblas avatar yetanothermatt avatar

Watchers

 avatar

Forkers

thinkinglogic

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.