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: 5 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-08-13T14:15:45.000Z (5 months ago)
- Last Synced: 2024-10-29T19:59:46.658Z (about 2 months ago)
- Topics: docker, docker-image, drone, drone-plugin
- Language: Go
- Size: 1.05 MB
- Stars: 66
- Watchers: 9
- Forks: 36
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# drone-git-push
[繁體中文](README.zh-tw.md) | [简体中文](README.zh-cn.md)
[![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/testing.yml/badge.svg)](https://github.com/appleboy/drone-git-push/actions/workflows/testing.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
```