By default, running astro deploy with the Astro CLI builds your project into a Docker image and deploys it to Astronomer Software. In some cases, you might want to skip the build step and deploy a prebuilt Docker image instead.
Deploying a prebuilt Docker image allows you to:
In order to push code to a Deployment on Astronomer, you must have:
https://app.BASEDOMAIN.sha_as_tag as true.Run docker build from an Astro project directory or specify the command in a CI/CD pipeline. This Docker image must be based on Astro Runtime and be available in a local Docker registry. If you run this command on an Apple M1 computer or on a computer with an ARM64 processor, you must specify --platform=linux/amd64 or else the deploy will fail. Astro Deployments require an AMD64-based image and do not support ARM64 architecture.
(Optional) Test your Docker image in a local Airflow environment by adding the --image-name=<image-name> flag to any of the following commands:
astro dev startastro dev restartastro dev parseastro dev pytestIf you have the image locally, run the following command or specify it in a CI/CD pipeline:
If your image is in a remote repo, add the --remote flag with the path for the image and the --runtime-version.
For more information about the different command options, such as specifying a remote private repository or configuring an Astronomer Runtime version, see the CLI command reference.
If you build an AMD64-based image and run astro deploy from an Apple M1 computer, you might see a warning in your terminal. You can ignore the warning.