Helpers
Helpers are reusable YAML job components. Import individual files and extend the hidden jobs in your pipeline.
Available helpers
| Helper | Description |
|---|---|
| default | Shared pipeline stages and base app variables |
| docker | Build and push Docker images with BuildKit caching |
| kubernetes | Configure cluster access and manage image pull secrets |
| helm | Clone a chart repository and deploy with Helm |
| git | Compute commit lists, change summaries, release notes, and Gitflow rules |
| gitlab | Resolve MR context, post comments, fetch avatars, and create releases |
| slack | Send Block Kit messages to Slack channels |
| sentry | Create Sentry releases and upload source maps |
| Authenticate with Google Cloud and connect to GKE clusters | |
| digitalocean | Authenticate with DigitalOcean and connect to DOKS clusters |
| http | Send HTTP POST requests and poll endpoints for a status code |
Usage
yaml
include:
- project: hosst/gitlab-pipelines
file: helpers/slack.yaml
my-job:
extends: .slack_message
variables:
SLACK_MESSAGE_CHANNEL: deployments
SLACK_MESSAGE_TEXT: "Deployed $CI_COMMIT_REF_NAME"