A simple CI/CD tool to deploy your code to a server.
Git. To install it, run:
sudo apt-get install git
repo
scope.
See here for more information, or
click here to create a token.Set the owner of the Dropship folder and all its content to www-data
(or the user your web server runs as), and its permissions to 750:
sudo chown -R www-data:www-data /path/to/dropship
sudo chmod -R 750 /path/to/dropship
Rename file example.config
to config
and edit it. Add an administrative access token:
TOKEN=your_token_here
Please use a password generator to generate a secure token. You can use Random.org to quickly generate one.
example.deploy.json
to deploy.json
./check
and validate that all checks pass.These first steps will add a repository that you can update manually.
deploy.json
file in your Dropship installation and add the following information:
repo
scope.Add your repository information: repository URL, branch to deploy, and server path to deploy to. Use the examples in the file as reference.
For now, ignore the secret
value; you’ll use it later if you want to set up automatic deployment.
That’s it. You can now manually deploy your repository’s code. Go to the Manual deployment section for more information.
These steps will automate the deployment of your code every time you push to your repository.
Settings > Webhooks > Add webhook
.
/notify
. For example: https://example.com/dropship/notify
.application/json
.push
event.deploy.json
file in your Dropship installation and add the Secret of your repository in the corresponding secret
field.That’s it. Every time you push to your repository, Dropship will automatically deploy the latest version of your code to your server.
Pro-tip: if you only want to use automatic deployment (no manual), you can remove the token
field from the deploy.json
file to disable login.
Dropship includes a web interface to manually deploy your repository’s code. To manually deploy, follow these steps:
af3719eba1628
), or the name of the remote branch (e.g. origin/main
).