Skip to content
Snippets Groups Projects
Select Git revision
  • 02ecd046313ecf19c16fd45d3a1e120dad989dca
  • master default protected
  • 0.8.2
  • 0.8.1
  • 0.8.0
  • 0.7.13
  • 0.7.12
  • 0.7.11
  • 0.7.10
  • 0.7.9
  • 0.7.8
  • 0.7.7
  • 0.7.6
  • 0.7.5
  • 0.7.4
  • 0.7.3
  • 0.7.2
  • 0.7.1
  • 0.7.0
  • 0.6.27
  • 0.6.26
  • 0.6.25
22 results

version

  • Clone with SSH
  • Clone with HTTPS
  • Volker Schukai's avatar
    Volker Schukai authored
    Configure Secret Detection in `.gitlab-ci.yml`, creating this file if it does not already exist
    
    See merge request oss/utilities/version!1
    02ecd046
    History

    Bump Version

    This tool helps to increment the version number of a project.

    You can download the tool here: download.schukai.com/tools/version/.

    echo "1.0.0" | version patch
    # 1.0.1
    echo "1.0.0" | version minor
    # 1.1.0
    echo "1.0.0" | version major
    # 2.0.0

    You can also replace directly in files.

    YAML

    my:
      version: 1.0.0
    version patch --path my.yaml --selector my.version

    JSON

    {
      "my": {
        "version": "1.0.0"
      }
    }
    version patch --path my.json --selector my.version

    Git

    Or set git tags directly

    version patch --git

    Build

    With the command build the current build date can be output.

    version build

    Makefile

    
    build: 
        version patch --path $(PROJECT_ROOT)version.json --selector "version"
        $(eval VERSION := $(shell cat version.json | jq -r .version))
        $(eval BUILD := $(shell version date))
        
        echo "Compiling for every OS and Platform $(VERSION) $(BUILD)"