GithubHelp home page GithubHelp logo

imranansari / github-tag-autoincrement Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaisonpjohn/github-tag-autoincrement

0.0 2.0 0.0 6 KB

auto-increment semantic version (semver) patch and add a github tag

Shell 100.00%

github-tag-autoincrement's Introduction

Docker Build Status Docker ImageLayers Size Docker ImageLayers Docker Stars Docker pulls

github-tag-autoincrement

This light weight Docker image is targeting a very primal need: a CI-CD pipeline hook-able docker image, which will auto-increment patch version (Semantic Versioning) without any other libraries in your codebase. For example, You can hook up this image in your CI-CD chain so that it will be invoked for each commit to master. By doing so, you can convert cryptic and hard-to-remember commit SHAs to nice auto-incrementable semver tags, for example v0.0.1.

This Docker image is intended to use with your CI-CD pipeline (drone.io / travis) and it intends to address these 2 issues

  1. Including a library just to auto-increment your patch version and tag (Nebula release plugin or gradle git etc) in your codebase which has nothing to do with your business functionality.
  2. Manually upgrading the version in your codebase or Manually create a Tag when the above said libraries are not available in your choice of programming language.

Usage

docker run \
     -e "GITHUB_REPO_URL=https://api.github.com/repos/so-random-dude/oneoffcodes" \
     -e "TAG_PREFIX=v" \
     -e "GITHUB_USERNAME=<YOURUSERNAME>" \
     -e "GITHUB_PASSWORD=<YOURPASSWORD>" \
     jaisonpjohn/github-tag-autoincrement

If you just need to know the version in making so that you can tag your artifact with that version before you push to your Artifactory (Dockerhub / JFrog Artifactory / ECR / GCR etc), just add "MODE=READONLY"

docker run \
     -e "GITHUB_REPO_URL=https://api.github.com/repos/so-random-dude/oneoffcodes" \
     -e "TAG_PREFIX=v" \
     -e "GITHUB_USERNAME=<YOURUSERNAME>" \
     -e "GITHUB_PASSWORD=<YOURPASSWORD>" \
     -e "MODE=READONLY" \
     jaisonpjohn/github-tag-autoincrement

github-tag-autoincrement's People

Contributors

jaisonpjohn avatar

Watchers

 avatar  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.