Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.39 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.39 KB

github

  • Needs: >= v3.3
  • Image: crenshawdotdev/github-executor-plugin:latest

codecov

This is an Argo Workflows executor plugin for interacting with GitHub.

Example

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: github-example-
spec:
  entrypoint: main
  templates:
    - name: main
      plugin:
        github:
          # Use `issue` to create comments for PRs - the GitHub API considers PRs to be issues.
          issue:
            comment:
              body: "Hello, world!"
              number: "1"  # PR number, from the 
              owner: crenshaw-dev
              repo: github-executor-plugin

Prerequisites

Set up a GitHub personal access token

See GitHub's instructions to set up your token.

Then create a secret using that token.

# First, copy your token to the clipboard.
pbpaste > token
kubectl create secret generic github-token --from-file=token -n argo
rm token

How to install

Install:

kubectl apply -f github-executor-plugin-configmap.yaml

Uninstall:

kubectl delete cm github-executor-plugin