Prerequisites
- An Astro project hosted in a Git repository that Azure DevOps can access.
- An Astro Deployment.
- A Deployment API token, Workspace API token, or Organization API token.
- Access to Azure DevOps.
Single branch implementation
Complete the following setup in an Azure repository that hosts an Astro project:-
Set the following environment variable as a DevOps pipeline variable:
ASTRO_API_TOKEN: The value for your Workspace or Organization API token.ASTRO_DEPLOYMENT_ID: The ID for your Deployment.
-
Create a new Azure DevOps pipeline named
astro-devops-cicd.yamlat the root of the repository that includes the following configuration:astro-devops-cicd.yaml