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

  • Image 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 an 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.

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.