Skip to main content

Deploy code to Astro

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 three options for deploying code to a Deployment:

  • Project deploys: Run astro deploy to 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 a project image.
  • DAG-only deploys: Run astro deploy --dags to deploy only your DAG files to Astro. If you only need to deploy DAG changes, running this command is faster than running astro deploy since it does not require installing dependencies. See Deploy DAGS.
  • Image-only deploys: Run astro deploy --image to build and deploy your Astro project configurations as a Docker image without deploying your DAGs. This is useful you have a multi-repo CI/CD strategy, and you want to deploy your DAGs and project configurations from different repositories or storage buckets. See Image-only deploys

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.

See also

Was this page helpful?

Sign up for Developer Updates

Get a summary of new Astro features once a month.

You can unsubscribe at any time.
By proceeding you agree to our Privacy Policy, our Website Terms and to receive emails from Astronomer.