GitLab API

GitlabTool

Actions905

Overview

This node operation posts events to the GitLab Container Registry Event API endpoint. It is designed to send container registry event data to GitLab, which can be useful for automating workflows related to container image management, monitoring, or triggering other processes based on container registry events.

Use Case Examples

  1. Automatically notify a deployment system when a new container image is pushed to the registry.
  2. Trigger a CI/CD pipeline when a container registry event occurs.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, defaulting to POST for this operation.
Parameter Schema Schema for parameters to be sent with the request, hidden and used internally.
Request Body Schema Schema for the request body to be sent with the POST request, hidden and used internally.
Request Path The API endpoint path for posting container registry events, fixed to /api/v4/container_registry_event/events.

Output

JSON

  • response - The JSON response from the GitLab API after posting the container registry event.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the GitLab API authentication credential is correctly configured and has the necessary permissions to post container registry events.
  • Verify the baseUrl is correct and accessible from the n8n instance.
  • Check that the request body matches the expected schema for container registry events to avoid validation errors from the API.

Links

Discussion