action-github-deployment

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

action-github-deployment

Release Go Report Card Docker Pulls License

A GitHub Action for a creation and status update of a GitHub Deployment during CD flow

Features

  • Easily create GitHub Deployments
  • Update status of an existing deployments
  • Custom GitHub Environments supported
  • Incredibly fast! About 2MB docker image

Manual

Just to add an action to your CD flow

    - name: Create Deployment
      uses: docker://reasonsoftware/action-github-deployment:v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
:information_source: Create a deployment and later update its status
    - name: Create Deployment
      id: deployment
      uses: docker://reasonsoftware/action-github-deployment:v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    
    [...]

    - name: Update Status
      uses: docker://reasonsoftware/action-github-deployment:v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        DEPLOYMENT: ${{steps.deployment.outputs.id}}
        STATUS: success
:information_source: Create a deployment with non-default status
    - name: Create Deployment
      uses: docker://reasonsoftware/action-github-deployment:v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        STATUS: in_progress

Configuration

  • DEPLOYMENT - existing deployment ID, required when updating status
  • STATUS - status of a deployment, must be one of the following: [ error, failure, inactive, in_progress, queued, pending, success ]
  • ENVIRONMENT - GitHub Environment, default production

License

Apache-2.0 © 2021 Reason Cybersecurity Ltd.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL