https://github.com/deepset-ai/deepset-cloud-github-action-template
https://github.com/deepset-ai/deepset-cloud-github-action-template
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.2%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: deepset-ai
- Default Branch: main
- Size: 27.3 KB
Statistics
- Stars: 1
- Watchers: 8
- Forks: 2
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
CI/CD Template with GitHub Actions for deepset Cloud
This repository provides a sample template for implementing CI/CD using GitHub Actions with deepset Cloud REST APIs. It demonstrates working with two separate workspaces: dev and prod.
The template illustrates best practices and offers a starting point for setting up automated pipeline management and deployment in deepset Cloud environments. While it is fully functional, you may need to customize it to fit your specific use case and requirements.
Table of Contents
Prerequisites
Before using this template, ensure you have the following:
- A deepset Cloud account with access to your dev and prod workspaces.
- A GitHub account with permissions to create repositories and configure GitHub Actions.
- A basic understanding of Git and GitHub workflows.
Repository Structure
plaintext
your-repo/
├── .github/
│ └── workflows/
│ ├── deploy-dev.yml
│ └── deploy-prod.yml
├── pipelines/
│ ├── pipeline1/
│ │ ├── indexing.yaml
│ │ └── query.yaml
│ └── pipeline2/
│ ├── indexing.yaml
│ └── query.yaml
└── README.md
.github/workflows/: Contains GitHub Actions workflow files for CI/CD.pipelines/: Stores your pipeline configuration files.README.md: Provides instructions and information about the repository.
Setup Instructions
- Clone the repository locally:
bash
git clone https://github.com/deepset-ai/deepset-cloud-github-action-template
cd your-repo
Set up GitHub Secrets:
- Navigate to your GitHub repository.
- Go to Settings > Secrets and variables > Actions.
- Click "New repository secret" and add the following secret:
DEEPSET_CLOUD_API_KEY: Your deepset Cloud API key.
Note: The same API key is used for dev and prod environments.
Configure workspace names. Update the workspace names in the workflow files:
- In `.github/workflows/deploy-dev.yml`, replace `"YOUR_DEV_WORKSPACE_NAME"` with your actual **dev** workspace name.
- In `.github/workflows/deploy-prod.yml`, replace `"YOUR_PROD_WORKSPACE_NAME"` with your actual **prod** workspace name.
Usage
Branching Strategy
- Development Branch (
dev): Used for integrating and testing pipeline changes. Automatically deploys to the dev workspace on push. - Production Branch (
main): Contains stable and reviewed pipeline YAMLs. Deployment to the prod workspace is triggered on push or manually through GitHub Actions.
Adding or Updating Pipelines
Add pipeline files:
- For each pipeline, create a new directory under
pipelines/. - Each pipeline directory should contain two files:
indexing.yaml(with the indexing pipeline) andquery.yaml(with the query pipeline).
- For each pipeline, create a new directory under
After you updated your pipeline, commit the changes:
bash git add pipelines/your-pipeline-name/ git commit -m "Add/Update pipeline: your-pipeline-name"Push your changes to the appropriate branch:
- For development:
git push origin dev - For production:
git push origin main
- For development:
Triggering Deployments
Automatic Deployment:
- Dev Workspace: Pushing to the
devbranch triggers thedeploy-dev.ymlworkflow. - Prod Workspace: Pushing to the
mainbranch triggers thedeploy-prod.ymlworkflow.
- Dev Workspace: Pushing to the
Manual Deployment: For production, you can manually trigger the workflow:
- Go to the Actions tab in your GitHub repository.
- Select "Deploy to Prod Workspace" workflow.
- Click "Run workflow".
Rollback Procedures
To revert to a previous pipeline version, revert your changes in Git:
bash
git revert <commit-hash>
git push origin dev # or main, depending on the branch
The GitHub Actions workflow automatically redeploys the pipelines based on the reverted code.
Extending the Template
- To add more environments, copy and update existing workflows for additional environments, like staging.
- To enable deployment notifications, add steps to send them using email, Slack, and the like.
Owner
- Name: deepset
- Login: deepset-ai
- Kind: organization
- Email: hello@deepset.ai
- Location: Berlin, Germany
- Website: https://deepset.ai
- Twitter: deepset_ai
- Repositories: 14
- Profile: https://github.com/deepset-ai
Building enterprise search systems powered by latest NLP & open-source.
GitHub Events
Total
- Watch event: 2
- Public event: 1
- Fork event: 1
Last Year
- Watch event: 2
- Public event: 1
- Fork event: 1
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 3 days
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 3 days
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- agnieszka-m (1)