This GitLab CI runner image allows to bump node project version. This repository has been inspired from
- 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
- 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-----
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
bump ssh://dokku@dokku.me:8022/myapp
By default, git push won't be forced. You can enable force-push by setting environment variable ENABLE_FORCE_PUSH
to any value.