Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appleboy/drone-git-push
Drone plugin for deploying code using git push
https://github.com/appleboy/drone-git-push
docker docker-image drone drone-plugin
Last synced: 7 days ago
JSON representation
Drone plugin for deploying code using git push
- Host: GitHub
- URL: https://github.com/appleboy/drone-git-push
- Owner: appleboy
- License: apache-2.0
- Created: 2015-05-25T22:52:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-18T08:13:09.000Z (6 months ago)
- Last Synced: 2024-05-21T07:34:59.529Z (6 months ago)
- Topics: docker, docker-image, drone, drone-plugin
- Language: Go
- Size: 1.04 MB
- Stars: 64
- Watchers: 9
- Forks: 34
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# drone-git-push
[![GoDoc](https://godoc.org/github.com/appleboy/drone-git-push?status.svg)](https://godoc.org/github.com/appleboy/drone-git-push)
[![Lint and Testing](https://github.com/appleboy/drone-git-push/actions/workflows/lint.yml/badge.svg)](https://github.com/appleboy/drone-git-push/actions/workflows/lint.yml)
[![codecov](https://codecov.io/gh/appleboy/drone-git-push/branch/master/graph/badge.svg)](https://codecov.io/gh/appleboy/drone-git-push)
[![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/drone-git-push)](https://goreportcard.com/report/github.com/appleboy/drone-git-push)
[![Docker Pulls](https://img.shields.io/docker/pulls/appleboy/drone-git-push.svg)](https://hub.docker.com/r/appleboy/drone-git-push/)[Drone](https://www.drone.io/) / [Woodpecker](https://woodpecker-ci.org/) plugin to push changes to a remote `git` repository.
For the usage information and a listing of the available options please take a look at [the docs](DOCS.md).## Build
Build the binary with the following commands:
```sh
go build
go test
```## Docker
Build the docker image with the following commands:
```sh
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -tags netgo -o release/linux/amd64/drone-git-push
docker build --rm -t appleboy/drone-git-push .
```## Usage
Execute from the working directory:
```sh
docker run --rm \
-e DRONE_COMMIT_AUTHOR=Octocat \
-e [email protected] \
-e PLUGIN_SSH_KEY="$(cat "${HOME}/.ssh/id_rsa")" \
-e PLUGIN_BRANCH=master \
-e [email protected]:foo/bar.git \
-e PLUGIN_FORCE=false \
-v "$(pwd):$(pwd)" \
-w "$(pwd)" \
appleboy/drone-git-push
```