HUB
Sign inSign up

evolveorg/git

By evolveorg

•Updated over 7 years ago

Image for running git commands within drone CI. Works both on the server and locally

Image
0

2.8K

evolveorg/git repository overview

Image for running git commands within a drone CI/CD pipeline, can work both on the drone server and locally.

It provides an init script (init_git) that sets up the SSH private key when locally and does a git fetch --tags (which is not included on clone step by drone)

Eg.

steps:
- name: create-revision
  image: evolveorg/git:1.0.1
  commands:
  - init_git
  - git describe ${DRONE_COMMIT_REF:-HEAD} --tags > REVISION

When running locally you need to provide the SSH credentials like this:

DRONE_GIT_SSH_KEY=$(cat ~/.ssh/id_rsa) drone exec

Tag summary

Content type

Image

Digest

Size

22.4 MB

Last updated

over 7 years ago

docker pull evolveorg/git:1.0.1