Import projects from GitLab into production

Document/FileMarketingUtilitiesRecipe Tools

What it does

When a commit with import package in the title is pushed to GitLab, this automation downloads the package and imports it into the production environment. It then checks the import status multiple times to confirm the deployment succeeded.

Who it's for

Engineering teams who deploy projects through CI/CD pipelines and need automated production imports.

Apps used

How teams use this

Deploy projects automatically from GitLab

Push a commit with import package in the title to GitLab and the project deploys to production without manual steps. The team sees confirmation when the import finishes.

Reduce deployment errors and downtime

Automate the package download and import so human error during manual deployment is eliminated. Status checks confirm success before the team considers the deployment done.

Notify teams when deployment completes

Add a notification step after the final status check so the team receives a message in Slack or email when the project is live in production. Include the import status and any errors.

Deploy to multiple production environments

Set up separate flows for each production environment so a single GitLab commit can trigger imports to multiple instances. Filter by environment name in the commit title to route the package to the correct environment.

How it works

  1. Monitor GitLab for deployment commits. Listen for new events in GitLab. When a commit title contains import package, the automation starts and treats it as a deployment request for a project in the CI/CD pipeline.
  2. Download the package from GitLab. Retrieve the package file from the GitLab pipeline so it is ready to import into the production environment without manual download steps.
  3. Import the package to production. Send the downloaded package to the production environment and start the import process for the project so it becomes live.
  4. Verify the import status. Check the package import status multiple times to confirm the deployment completed successfully in the production environment.