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.
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.
To authorize GitHub Actions to push new information to your cluster you must set up the following secrets:
-
PACHYDERM_CLUSTER_URL
: This is the url to your pachyderm cluster, the one configured via Ingress topachd
's GRPC port. If you use Pachyderm Hub, it'll look something likegrpcs://hub-some-id.clusters.pachyderm.io:31400
. -
DOCKER_IMAGE_NAME
: Replace this with the base repo/tag combination for the Docker registry to which your image will be pushed. -
PACHYDERM_PIPELINE_FILES
: A space-delimited list of pipeline specifications that depend onDOCKER_IMAGE_NAME
. It can either be specific json files, or folders which contains multiple files.
-
PACHYDERM_TOKEN
: This is an authentication token to access the Pachyderm cluster. You can generate it usingpachctl auth get-auth-token --ttl <some duration>
. For information on setting the--ttl
duration, see generating the Pachyderm authentication token below. -
DOCKERHUB_TOKEN
andDOCKERHUB_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.
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"
To use the action, you need to set the following environment variables:
VERSION
: This is the version of thepachctl
binary you wish to use. If you do not supply it, we'll use the newest version.COMMAND
: This is the pachctl command you wish to run. For example to runpachctl start commit
you would putstart commit
here.
To authorize GitHub Actions to call commands to your cluster you must set up the following secrets:
-
PACHYDERM_CLUSTER_URL
: This is the url to your pachyderm cluster, the one configured via Ingress topachd
's GRPC port. If you use Pachyderm Hub, it'll look something likegrpcs://hub-some-id.clusters.pachyderm.io:31400
. -
PACHYDERM_TOKEN
: This is an authentication token to access the Pachyderm cluster. You can generate it usingpachctl auth get-auth-token --ttl <some duration>
. For information on setting the--ttl
duration, see generating the Pachyderm authentication token below.