Git-Auto-Deploy | Bitbucket projects automatically on Git push events | Continuous Deployment library
kandi X-RAY | Git-Auto-Deploy Summary
kandi X-RAY | Git-Auto-Deploy Summary
Git-Auto-Deploy consists of a small HTTP server that listens for Webhook requests sent from GitHub, GitLab or Bitbucket servers. This application allows you to continuously and automatically deploy your projects each time you push new commits to your repository.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run the git hook
- Send update message
- Return a dict representation of the exception
- Add an event to the hub
- Set up configuration
- Clone all the configured repositories
- Remove the pid file
- Stop the process
- Handle Keyboard interrupt signal
- Set up logging
- Returns a list of matching projects
- Return the path to the config file
- Get config from argv
- Return a list of projects that match the request
- Get repo configuration from environment variables
- Returns a list of projects matching the request
- Return a list of projects matching the incoming request
- Rename legacy attribute names
- Get configuration data from a file
- Validate the request token
- Validate the request signature
- Return a list of matching projects
- Get configuration from environment
- Start HTTPServer
- Start the HTTP server
- Get the default configuration
- Start the WebSocket server
Git-Auto-Deploy Key Features
Git-Auto-Deploy Examples and Code Snippets
Community Discussions
Trending Discussions on Git-Auto-Deploy
QUESTION
Im currently trying to figure out how to deploy an gitlab project automatically using ci. I managed to run the building stage successfully, but im unsure how to retrieve and push those builds to the releases.
As far as I know it is possibile to use rsync or webhooks (for example Git-Auto-Deploy) to get the build. However I failed to apply these options successfully.
For publishing releases I did read https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/api/tags.md#create-a-new-release, but im not sure if I understand the required pathing schema correctly.
Is there any simple complete example to try out this process?
...ANSWER
Answered 2017-May-11 at 18:32A way is indeed to use webhooks:
There are tons of different possible solutions to do that. I'd go with a sh script which is invoked by the hook.
How to intercept your webhook is up to the configuration of your server, if you have php-fpm installed you can use a PHP script.
When you create a webhook in your Gitlab project (Settings->Webhooks) you can specify for which kind of events you want the hook (in our case, a new build), and a secret token so you can verify the script has been called by Gitlab.
The PHP script can be something like that:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Git-Auto-Deploy
Add our PPA repository. Install Git-Auto-Deploy using apt. Modify the configuration file to match your project setup. Read more about the configuration options. Optional: Copy any private SSH key you wish to use to the home directory of GAD. Check out this document for more on SSH keys. Start Git-Auto-Deploy and check it's status.
When installing Git-Auto-Deploy from the repository, you'll need to make sure that Python (tested on version 2.7) and Git (tested on version 2.5.0) is installed on your system. Install the dependencies with pip, a package manager for Python, by running the following command.
GAD runs under Windows but requires some requisites.
Install Python 2.7 using the Windows installer.
Verify that Python is added to your system PATH. Make sure C:\Python27 and C:\Python27\Scripts is part of the PATH system environment variable.
Install pip using the get-pip.py script
Install Git using the official Git build for Windows
Verify that Git is added to your system PATH. Make sure that C:\Program Files\Git\cmd is added (should have been added automatically by the installer) as well as C:\Program Files\Git\bin (not added by default).
Continue with the above instructions for installing GAD from the repository
Install as a python module (experimental)
Install as a debian package (experimental)
Start automatically on boot (init.d and systemd)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page