avtar / push-ref-gitlab

Pushing a Git ref to Gitlab and set up CI features in the process

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This Node.js script will accept a git ref as an argument and push it to a Gitlab repository. It's a test to see if Gitlab CI features can be used for repositories hosted on GitHub.

Installation

Clone this repository and use npm to install:

npm install -g

Usage

/usr/bin/push-ref-gitlab \
--build-events-webhook-url=http://host:port/path \
--gitlab-instance=https://gitlab.com \
--github-repo-owner=github-account-name \
--github-repo-name=github-repo-to-mirror \
--gitlab-repo-owner=gitlab-account-name \
--gitlab-repo-name=gitlab-target-repo \
--ref=git-ref-to-push \
--gitlab-enable-shared-runners=true \
--gitlab-token=gitlab-token \
--gitlab-runner-id=gitlab-ci-runner-id \
--cwd=working-directory

About

Pushing a Git ref to Gitlab and set up CI features in the process

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 100.0%