A variable is created in a step that needs to be used for a later step.
Include links on examples we have for it. Putting in great detail here is likely not a good fit. But some key components. You can watch our Unlimited Staging Environments Webinar for much of the information regarding deployments.
- The Deploy Step
- Set a trigger to run a pipeline on a Pull Request being opened.
- As part of the final steps of the pipeline, deploy your built image or Helm chart.
- The Close Step
- Create a trigger to run a pipeline upon a Pull Request being merged. Note that there is no pull request merge event. Therefore, insert a good suggestion.
- Remove your deployment by the appropriate means (helm/un-deploy, i guess)
Example Voting App Pipeline, a pipeline that deploys helm charts on pull requests and on new versions being released.