I have been trying to setup a deployment step in my bitbucket-pipelines.yml but the documentation on what that step (in a typical or suggested workflow) is just not that clear. All of the documentation has one-liners like "python deploy-to-prod.py".... ok,... what does that script *do* or *what* is that script acting on?
I see that you can set variables at the deployment level. I am assuming people store credentials required to take action on your deployment (to push to a cloud resource).
What other variables does it have access to?... all of the variables that are used in other pipeline steps?
Does it have access to artifacts?
Could someone post a pseudo-code "deploy-to-prod.py" that might suggest a typical workflow of pushing the yielded build of a pipeline step to a production system.