Blog

Nouvelle intégration de GitLab et GitHub Enterprise :<br/> Déploiement automatique et applications de révision

Chargement...

8 min de lecture

Nouvelle intégration de GitLab et GitHub Enterprise :<br/> Déploiement automatique et applications de révision

Après GitHub, nous intégrons désormais GitLab, GitHub Enterprise et GitLab auto-hébergé !

Nous sommes très heureux de lancer aujourd'hui la version étendue de notre intégration approfondie avec les outils de gestion de code source. Après GitHub, nous intégrons désormais GitLab, GitHub Enterprise et GitLab auto-hébergé ! Vous pouvez désormais déployer automatiquement, créer des applications de révision et bien plus à partir de nombreux outils SCM.

Notre mission chez Scalingo est de simplifier la vie des développeurs. Avec l'introduction de l'intégration GitHub il y a quelques années, nous nous sommes profondément intégrés à une plateforme utilisée par beaucoup d'entre vous. Nous avons reçu de nombreux retours positifs et des demandes d'intégration avec d'autres outils de gestion de code source (SCM) tels que GitLab.

Nous sommes maintenant en mesure de fournir le même niveau d'intégration avec GitLab, GitHub Enterprise et des instances GitLab auto-hébergées.

L'intégration SCM

Rappelons d'abord ce qui est inclus dans l'intégration SCM. L'intégration SCM vous permet de lier une application Scalingo à un dépôt hébergé sur l'un des outils SCM compatibles. Elle se compose de deux parties principales : Déploiements et Applications de révision.

L'objectif de l'intégration SCM est d'automatiser le flux GitHub, une bonne pratique dans le développement moderne d'applications. Notez que malgré son nom, le flux GitHub est parfaitement applicable aux applications hébergées sur GitLab.

Déploiements

Vous pouvez configurer votre application Scalingo pour être déployée automatiquement chaque fois qu'un commit se produit sur une branche donnée. Cela est particulièrement utile, par exemple, si vous souhaitez que l'application soit toujours synchronisée avec la branche production de votre dépôt.

Vous pouvez avoir des outils d'intégration continue (CI) associés à votre dépôt comme Codeship ou TravisCI qui exécute des tâches, des tests ou autre. Nous attendrons toujours que tous ces outils réussissent avant de déployer votre application.

Vous pouvez également déclencher manuellement un déploiement de votre application depuis n'importe quelle branche.

Vous pouvez trouver plus d'informations sur la page de documentation dédiée pour GitHub et GitLab.

Applications de révision

Les applications de révision sont un outil génial pour discuter des nouvelles fonctionnalités avec vos coéquipiers. Chaque fois que vous créez une nouvelle demande de tirage (ou demande de fusion dans le monde de GitLab), vous pouvez créer une nouvelle application, appelée application de révision, avec le code de la nouvelle fonctionnalité. Il est ensuite facile de partager le résultat de votre travail ! Si vous poussez une modification à la demande de tirage/de fusion, elle sera automatiquement déployée dans votre application de révision.

Lorsque la demande de tirage/de fusion est fermée, Scalingo supprime automatiquement l'application de révision.

Vous pouvez soit créer automatiquement une nouvelle application de révision pour chaque demande de tirage/de fusion ouverte sur votre dépôt, soit déployer manuellement une application de révision.

Vous pouvez trouver plus d'informations sur les applications de révision sur notre page de documentation.

Utiliser l'intégration SCM

L'intégration GitHub est toujours disponible sous la section "Code" de votre tableau de bord web. Mais les nouvelles intégrations ne sont disponibles que via la CLI. Un tout nouveau tableau de bord est en cours de développement, qui inclura toute l'UX pour que vous puissiez utiliser ces nouvelles intégrations dans votre navigateur web.

Voici les commandes pour lier votre compte Scalingo à l'un des outils SCM :

# Link your Scalingo account to your public GitHub account
scalingo integrations-add github

# Link your Scalingo account to your GitLab.com account
scalingo integrations-add gitlab

# Link your Scalingo account to your GitHub Enterprise account
scalingo integrations-add github-enterprise --url https://ghe.example.com --token <token>

# Link your Scalingo account to your self-hosted GitLab account
scalingo integrations-add gitlab-self-hosted --url https://gl.example.com --token

# Link your Scalingo account to your public GitHub account
scalingo integrations-add github

# Link your Scalingo account to your GitLab.com account
scalingo integrations-add gitlab

# Link your Scalingo account to your GitHub Enterprise account
scalingo integrations-add github-enterprise --url https://ghe.example.com --token <token>

# Link your Scalingo account to your self-hosted GitLab account
scalingo integrations-add gitlab-self-hosted --url https://gl.example.com --token

# Link your Scalingo account to your public GitHub account
scalingo integrations-add github

# Link your Scalingo account to your GitLab.com account
scalingo integrations-add gitlab

# Link your Scalingo account to your GitHub Enterprise account
scalingo integrations-add github-enterprise --url https://ghe.example.com --token <token>

# Link your Scalingo account to your self-hosted GitLab account
scalingo integrations-add gitlab-self-hosted --url https://gl.example.com --token

# Link your Scalingo account to your public GitHub account
scalingo integrations-add github

# Link your Scalingo account to your GitLab.com account
scalingo integrations-add gitlab

# Link your Scalingo account to your GitHub Enterprise account
scalingo integrations-add github-enterprise --url https://ghe.example.com --token <token>

# Link your Scalingo account to your self-hosted GitLab account
scalingo integrations-add gitlab-self-hosted --url https://gl.example.com --token

Le token est obligatoire pour GitHub Enterprise et GitLab auto-hébergé. Veuillez consulter la page de documentation pour GitHub et GitLab pour vous aider à trouver ce token.

Ensuite, vous pouvez lier une application Scalingo à l'une de ces intégrations :

# Link the GitHub repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://github.com/Scalingo/sample-go-martini --auto-deploy --branch master

# Link the GitLab repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://gitlab.com/Scalingo/sample-go-martini --auto-deploy --branch master

# Link the GitHub Enterprise repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://ghe.example.com/Scalingo/sample-go-martini --auto-deploy --branch

# Link the GitHub repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://github.com/Scalingo/sample-go-martini --auto-deploy --branch master

# Link the GitLab repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://gitlab.com/Scalingo/sample-go-martini --auto-deploy --branch master

# Link the GitHub Enterprise repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://ghe.example.com/Scalingo/sample-go-martini --auto-deploy --branch

# Link the GitHub repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://github.com/Scalingo/sample-go-martini --auto-deploy --branch master

# Link the GitLab repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://gitlab.com/Scalingo/sample-go-martini --auto-deploy --branch master

# Link the GitHub Enterprise repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://ghe.example.com/Scalingo/sample-go-martini --auto-deploy --branch

# Link the GitHub repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://github.com/Scalingo/sample-go-martini --auto-deploy --branch master

# Link the GitLab repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://gitlab.com/Scalingo/sample-go-martini --auto-deploy --branch master

# Link the GitHub Enterprise repository sample-go-martini to the Scalingo application my-app, auto-deploy the master branch
scalingo --app my-app integration-link-create https://ghe.example.com/Scalingo/sample-go-martini --auto-deploy --branch

Conclusion

Avec l'introduction de cette nouvelle fonctionnalité, Scalingo reste la plateforme d'hébergement de choix pour les développeurs grâce à un ensemble d'intégrations qui les aident grandement dans leur pratique de développement.

Vous pensez à un autre outil avec lequel Scalingo pourrait s'intégrer ? N'hésitez pas à nous contacter pour le support. Nous sommes toujours désireux d'enrichir notre feuille de route publique avec de nouvelles idées venant de vous !

Photo par Franck V. sur Unsplash

Léo Unbekandt, Scalingo

Léo Unbekandt

Léo est le fondateur et CTO de Scalingo. Il a étudié en France en tant qu'ingénieur cloud (ENSIIE) et en Angleterre (Cranfield University). Il est responsable du développement technique de Scalingo et il gère notre équipe technique.

Restez informé

Recevez des articles et des mises à jour de la plateforme dans votre boîte de réception.

Prêt à déployer en toute confiance ?

Découvrez des déploiements sans temps d'arrêt, une mise à l'échelle automatique intelligente et une infrastructure entièrement gérée. Commencez à déployer vos applications sur Scalingo dès aujourd'hui.

Aucune carte de crédit requise • Déployez en quelques minutes • Annulez à tout moment

Déployez une application ou base de données

Commencez à déployer

Rejoignez les équipes qui misent sur une plateforme conçue pour livrer rapidement, opérer sereinement, avec des valeurs européennes et un support humain.

Déployez une application ou base de données

Commencez à déployer

Rejoignez les équipes qui misent sur une plateforme conçue pour livrer rapidement, opérer sereinement, avec des valeurs européennes et un support humain.

Déployez une application ou base de données

Commencez à déployer

Rejoignez les équipes qui misent sur une plateforme conçue pour livrer rapidement, opérer sereinement, avec des valeurs européennes et un support humain.