To keep my pipeline tasks DRY I want to reuse my deployment task. I now have something like:
- step:
<<: *DEPLOY_TEST
deployment: test
- step:
<<: *DEPLOY_STAGING
deployment: staging
trigger: manual
But the DEPLOY_STAGING and DEPLOY_TEST definitions only differ regarding the env on which to deploy. Can I add something like:
- step:
<<: *DEPLOY
deployment: test
environment:
HOST: test-host
To further reuse code and have just one DEPLOY definition?