Code Push to EC2
User image: node:21 pipelines: default: – step: name: Build & Deploy caches: – node script: – echo "$SSH_PRIVATE_KEY" | tr -d 'r' | ssh-add – – mkdir -p ~/.ssh – chmod 700 ~/.ssh – echo "$EC2_SSH_PUBLIC_KEY" > ~/.ssh/authorized_keys – chmod 600 ~/.ssh/authorized_keys – git clone https://your-bitbucket-repository-url – cd your-project-directory – npm install – npm run […]