Hi everyone,
I’ve developed a lightweight web tool that calculates end-of-service / gratuity benefits (for UAE context). Now I want to automate its deployment using Bitbucket Pipelines so every commit triggers a build + deployment to a server or container.
Here’s what I have so far:
Code in a Bitbucket repository (Node.js + Express backend + simple frontend)
A Dockerfile ready to build the container
A target server (DigitalOcean droplet or similar) where I can pull and run containers
My questions:
1. How do I configure bitbucket-pipelines.yml to build, push the Docker image, and SSH deploy (or deploy via Docker registry)?
2. Any secure practices / environment variables handling (API keys, secrets) I should follow in Pipelines?
3. How to avoid downtime during deployment — is Blue/Green or Canary deployment possible with Pipelines?
4. What about rollback strategies if the new version fails?
If anyone has done automated deploys of utility tools or small web apps via Bitbucket Pipelines + Docker, I’d greatly appreciate sample configs, pointers, or pitfalls to watch out for.
Thanks in advance! 🙏