This pipe is used to relay commits to Magento Cloud to trigger deployments.
Add the following your bitbucket-pipelines.yml file:
- step:
name: "Git commit relay"
script:
- pipe: docker://aligent/magento-cloud-deploy-pipe:latest
variables:
MAGENTO_CLOUD_REMOTE: "[email protected]"
| Variable | Usage |
|---|---|
| MAGENTO_CLOUD_REMOTE | The git remote where commits will be relayed |
| NR_APP_ID | (Optional) The NewRelic App ID the deployment marker will be created in |
| NR_USER_KEY | (Optional) The NewRelic User Key for API Calls |
| NR_ALERT_MUTING_RULE_ID | (Optional) The NewRelic Alert Mute Rule ID used for suppressing alerts during deployment |
| NR_ACCOUNT_ID | (Optional) The NewRelic Account ID that the deployment will suppress the alerts |
| MAGENTO_CLOUD_CLI_TOKEN | (Optional) Magento Cloud Deploy User API token, for automatic redeploy on transient failure |
| DEBUG | (Optional) Turn on extra debug information. Default: false. |
nr-deployment.json.template file under the project root with the content below to enable the NR deployment marker:{
"deployment": {
"revision": "GITSHA"
}
}
Commits published to the main branch will trigger an automated build for the latest tag in DockerHub
Content type
Image
Digest
sha256:209c697e4…
Size
26.8 MB
Last updated
25 days ago
docker pull aligent/magento-cloud-deploy-pipe