To run your code on Astro, you need to deploy it to a Deployment. You can deploy part or all of an Astro project to an Astro Deployment.
There are two options for deploying code to a Deployment:
- Image deploys: Run
astro deployto build every non-DAG file in your Astro project as a Docker image and deploy the image to all Airflow components in a Deployment. This includes your
Dockerfile, plugins, and all Python and OS-level packages. DAGs are deployed separately to each Airflow component through a sidecar container. See Deploy an image.
- DAG-only deploys: Run
astro deploy --dagsto deploy only your DAG files to Astro. If you only need to deploy DAG changes, running this command is faster than running
astro deploysince it does not require installing dependencies. See Deploy DAGS.
For each deploy option, you can either trigger the deploy manually or through CI/CD. CI/CD pipelines can include both image deploys and DAG-only deploys, and they can deploy to multiple different Deployments based on different branches in your git repository. See CI/CD overview.