Deploy to an Astro Deployment
Follow these steps to deploy your latest changes from the Astro IDE to your Astro environment.Prerequisites
- An Astro Deployment.
- The project must have been:
- Imported using the Astro GitHub integration, or
- Imported with the Astro CLI, or
- Created directly in the Astro IDE. Projects imported via manual Git provider configuration cannot be deployed directly from the IDE. Commit and push your changes to your Git provider, then use your organization’s standard CI/CD pipeline to deploy.
Deploy your changes
1
Open the Deploy menu
In the Astro IDE, click the More Actions menu toolbar and select Deploy Project….
2
Choose version and Deployment target
In the Deploy Project dialog:
- Review or edit the Version you want to deploy.
- Select the Deployment target from your available Deployments.
3
Deploy
Click Deploy Project to start the code deploy.
4
Confirm deployment
In the Astro UI, open the target Deployment and check Deploy History in the Overview tab.
Confirm that the latest deployment entry shows Astro IDE in the Deployed By column to verify your code was successfully deployed from the IDE.
Restrict Astro IDE deploys to test Deployments
You can stop the Astro IDE from deploying to any Deployment in a Workspace other than Astro IDE ephemeral test Deployments. Use this setting to keep code changes made in the Astro IDE out of production Deployments. The setting is off by default.Prerequisites
- Workspace Owner permissions, or a custom role with the
workspace.settings.updatepermission.
Turn on the restriction
- In the Astro UI, go to Settings > Workspaces, then select your Workspace.
- In the Astro IDE section, turn on Restrict Deploys to Test Deployments. The change saves immediately.
What the restriction blocks
When the setting is on, the following happens in the Workspace:- In the Deploy Project dialog, Deployments other than test Deployments are dimmed and show (Restricted by Workspace). You can’t select them.
- In the Test tab, Use an existing Deployment isn’t available. Start an ephemeral test Deployment instead.
- If a session already uses a Deployment other than a test Deployment, Sync to Test isn’t available. Click Stop using Deployment, then start an ephemeral test Deployment.