update from sparkleup
This commit is contained in:
parent
0f29383d2a
commit
fa83309dbd
|
@ -8,7 +8,7 @@ Continuous deployment or continuous delibery (CD) refers to the idea that change
|
|||
|
||||
There are several tools that can help with CI/CD. These run as their own web services, which work with many source code management (SCM) systems to perform these tasks automatically. [Drone](https://drone.io) is one such solution, that provides a way of executing **pipelines** --- sets of steps that the service will run through such as building the software and running tests --- that are described in the code itself. Drone is a flexible CI/CD tool that can perform this on many different types of **runners**, containers or machines where the project can be repeatably built.
|
||||
|
||||
This tutorial aims to show how Drone can integrate with the source code management tool Gitea in order to offer fully self-hosted solutions for SCM and CI/CD. You will be installing Drone, connecting it with Gitea, and creating a test project to see how the two services work together.
|
||||
This tutorial aims to show how Drone can integrate with the source code management tool Gitea in order to offer fully self-hosted solutions for SCM and CI/CD. You will be installing Drone, connecting it with Gitea, and creating a sample project for Drone to run tests on in order to see how the two services work together.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
|
@ -209,6 +209,8 @@ assert 1 == 2
|
|||
|
||||
Commit and push your work as you did before, and then return to your Drone dashboard. Thankfully, 1 does not equal 2, and so our test fails as expected.
|
||||
|
||||
These results are also visible in Gitea, where you can see whether a particular commit broke the build. Visit your repo in Gitea and click on the **Commits** link above the file listing. You should see all of your commits that went into creating this test project. Before the commit where you checked whether 1 was equal to 2, you should see a red **
|
||||
These results are also visible in Gitea, where you can see whether a particular commit broke the build. Visit your repository in Gitea and click on the **Commits** link above the file listing. You should see all of your commits that went into creating this test project. Before the commit where you checked whether 1 was equal to 2, you should see a red **×** indicating that CI has failed, whereas you should see a green **✓** indicating that the build passed. Prior to that, before the repository was hooked up to Drone, you should see no indicators.
|
||||
|
||||
## Conclusion
|
||||
|
||||
In this tutorial, you set up the self-hosted CI/CD service Drone to work with your self-hosted Gitea service. CI/CD services can help keep your project in a clean state and your builds fresh and fast. Drone allows you to automatically run tests, checks, and deploys on your projects. Here, we are simply running a check every time a commit is pushed to Gitea, but the configuration files for Drone are flexible, allowing you to run checks on merges using triggers, run only on certain events using conditionals, and so on. For more information, the [Drone Pipeline Docs](https://docs.drone.io/pipeline/docker/overview/) describe many common scenarios.
|
||||
|
|
Loading…
Reference in New Issue