Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

beardedio/git-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git-Tools Docker Image

This docker image has a few tools used to interact with a git repo.

git-push

This tool allows you to push changes to a git repository. An example of this is using a GitLab CI runner image to deploy a GitLab project to a remote Git repo.

How to use git-push

Create .gitlab-ci.yml:

image: beardedio/git-tools

stages:
  - deploy

deploy to production:
  stage: deploy
  environment: production
  only:
    - master
  script: git-push dokku@dokku.me:myapp

Go to GitLab > Project > Settings > CI/CD > Secret Variables, and add a variable SSH_PRIVATE_KEY:

-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----

Pushing to a branch other than master

By default, git-push will push to branch master of a remote repository (that's what Dokku wants). You can override this with:

git-push user@git.host:repo branch

Pushing to Git running on a non-standard port

git-push ssh://dokku@dokku.me:8022/myapp

Not doing force push

By default, git push will be forced. You can disable force push by setting environment variable DISABLE_FORCE_PUSH to any value.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published