rimiti / gitlab-bump

Tag Gitlab NodeJS project from CI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gitlab-bump

This GitLab CI runner image allows to bump node project version. This repository has been inspired from

How to use

  1. Create .gitlab-ci.yml:
image: rimiti:gitlab-bump

stages:
  - tag

tag:
  stage: "tag"
  environment: 
    name: "production"
  only:
    - "master"
  script: bump user@git.host:repository branch
  1. Go to GitLab > Project > Settings > CI/CD > Secret Variables, and add a variable SSH_PRIVATE_KEY:
-----BEGIN RSA PRIVATE KEY-----
   // YOUR_PRIVATE_KEY_HERE
-----END RSA PRIVATE KEY-----

Pushing to a branch other than master

By default, bump will bump and push to branch master of a remote repository. You can override this with:

bump user@git.host:repo branch

Pushing to Git running on a non-standard port

bump ssh://dokku@dokku.me:8022/myapp

Not doing force push

By default, git push won't be forced. You can enable force-push by setting environment variable ENABLE_FORCE_PUSH to any value.

About

Tag Gitlab NodeJS project from CI


Languages

Language:Shell 87.9%Language:Dockerfile 12.1%