GitLab API

GitlabTool

Actions905

Overview

This node operation uploads a Terraform module version file to a specified project in GitLab. It is useful for automating the publishing of Terraform modules to GitLab's package registry, enabling infrastructure as code workflows to be integrated with CI/CD pipelines. For example, a DevOps engineer can use this node to programmatically upload new versions of Terraform modules after successful builds.

Use Case Examples

  1. Uploading a new version of a Terraform module file to a GitLab project to make it available for use in infrastructure deployments.
  2. Automating the release process of Terraform modules by integrating this node in a workflow that triggers on code changes.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to PUT for this operation.
Path Parameters Parameters included in the request path to specify the project and module details.

Output

JSON

  • id - The ID or full path of the GitLab project.
  • module_name - The name of the Terraform module.
  • module_system - The module system used by the module.
  • module_version - The version of the Terraform module being uploaded.
  • file - The Terraform module package file that was uploaded.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID or full path is correct to avoid 404 errors.
  • Verify that the module name, system, and version are correctly specified to prevent upload failures.
  • Check that the file to be uploaded is correctly formatted and accessible.
  • Authentication errors may occur if the API key is missing or invalid; ensure proper credentials are configured.

Links

Discussion