Sign inSign up

gesellix/gh-deployments

By gesellix

Updated almost 6 years ago

Util to manage GitHub Deployments

Image
0

858

gesellix/gh-deployments repository overview

gh-deployments

A little cli on top of go-github.

Official docs:

Local Setup

The following parameters are required for every task:

  • GitHub Token
  • Owner
  • Repository

Most subcommands require more parameters. The help subcommand prints a list of available parameters.

Create Deployment

$ docker run --rm -it \
  --env GITHUB_TOKEN \
  --env GITHUB_OWNER=gesellix \
  --env GITHUB_REPO=gh-deployments \
  gesellix/gh-deployments create \
  --ref=7d9c662978d50faf7a0ba489fcc94e543f49da61 \
  --description=ein\ test \
  --environment=test
deployment_id=279713949

Update Deployment Status

$ docker run --rm -it \
  --env GITHUB_TOKEN \
  --env GITHUB_OWNER=gesellix \
  --env GITHUB_REPO=gh-deployments \
  gesellix/gh-deployments status \
  --deployment-id=279713949 \
  --log_url=https://www.gesellix.net \
  --state=success \
  --description=ein\ test \
  --environment=test
deployment_status_id=413547422

Tag summary

Content type

Image

Digest

Size

3.7 MB

Last updated

almost 6 years ago

docker pull gesellix/gh-deployments