Prerequisites
- An Astro project hosted in a Git repository that Drone can access.
- An Astro Deployment.
- A Deployment API token, Workspace API token, or Organization API token.
- A functional Drone server.
- A user with admin privileges to your Drone server.
- A Docker runner.
Single branch implementation
- Set the following environment variable as a repository-level secret on Drone:
ASTRO_API_TOKEN: The value for your Workspace or Organization API token.
- In your Drone server, open your Astro project repository and go to Settings > General. Under Project Settings, turn on the Trusted setting.
-
In the top level of your Git repository, create a file called
.drone.ymlthat includes the following configuration:
.drone.yml