Coder Social home page Coder Social logo

pachyderm-actions's Introduction

Pachyderm GitHub Actions

Pipeline Update Action

Note: The GitHub action updates or creates the pipeline, but does not create or delete versioned data repositories. Any input repositories should already exist or the pipeline cannot be created.

Usage

To use the Pachyderm action in your workflow, use:

- uses: pachyderm/pachyderm-actions/pipeline-action@master
  env:
    PACHYDERM_CLUSTER_URL: ${{ secrets.PACHYDERM_URL }}
    PACHYDERM_TOKEN: ${{ secrets.PACHYDERM_TOKEN }}
    DOCKER_IMAGE_NAME: ${{ secrets.DOCKER_IMAGE }}
    PACHYDERM_PIPELINE_FILES: <list pipeline JSON files to be updated>

For more details or customizations of this action, see our example.

Configuration

To authorize GitHub Actions to push new information to your cluster you must set up the following secrets:

  1. PACHYDERM_CLUSTER_URL: This is the url to your pachyderm cluster, the one configured via Ingress to pachd's GRPC port. If you use Pachyderm Hub, it'll look something like grpcs://hub-some-id.clusters.pachyderm.io:31400.

  2. DOCKER_IMAGE_NAME: Replace this with the base repo/tag combination for the Docker registry to which your image will be pushed.

  3. PACHYDERM_PIPELINE_FILES: A space-delimited list of pipeline specifications that depend on DOCKER_IMAGE_NAME. It can either be specific json files, or folders which contains multiple files.

Secrets

  1. PACHYDERM_TOKEN: This is an authentication token to access the Pachyderm cluster. You can generate it using pachctl auth get-auth-token --ttl <some duration>. For information on setting the --ttl duration, see generating the Pachyderm authentication token below.

  2. DOCKERHUB_TOKEN and DOCKERHUB_USERNAME: for GitHub to be able to push the Docker image once it is built. For information on creating a Docker Hub token, see Managing Access Tokens.

Pachctl Command Action

Usage

To use the pachctl action in your workflow, use:

- uses: pachyderm/pachyderm-actions/pachctl-action@master
  env:
    PACHYDERM_TOKEN: ${{ secrets.PACHYDERM_TOKEN }}
    PACHYDERM_CLUSTER_URL: ${{ secrets.PACHYDERM_CLUSTER_URL }}
    VERSION: 2.0.5
    COMMAND: "version"

Configuration

To use the action, you need to set the following environment variables:

  1. VERSION: This is the version of the pachctl binary you wish to use. If you do not supply it, we'll use the newest version.
  2. COMMAND: This is the pachctl command you wish to run. For example to run pachctl start commit you would put start commit here.

To authorize GitHub Actions to call commands to your cluster you must set up the following secrets:

  1. PACHYDERM_CLUSTER_URL: This is the url to your pachyderm cluster, the one configured via Ingress to pachd's GRPC port. If you use Pachyderm Hub, it'll look something like grpcs://hub-some-id.clusters.pachyderm.io:31400.

  2. PACHYDERM_TOKEN: This is an authentication token to access the Pachyderm cluster. You can generate it using pachctl auth get-auth-token --ttl <some duration>. For information on setting the --ttl duration, see generating the Pachyderm authentication token below.

License

Pachyderm License

pachyderm-actions's People

Contributors

dwilson1988 avatar jimmywhitaker avatar tybritten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pachyderm-actions's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.