In my little cozy world, for many times just because it's working I keep doing it the lazy way.
When I knew about Heroku and how to deploy a app, I thought that nothing could get better and for a long time I was deploying from my terminal.
Today I tried deploy through Bitbucket Pipelines and as dumb as it seems it took me a while to figure it out how to setup the bitbucket-pipelines.yml file.
// get the `HEROKU_API_KEY`
$ heroku auth:token
# https://bitbucket-pipelines.prod.public.atl-paas.net/validator
clone:
depth: full
pipelines:
branches:
master:
- step:
name: Deploy
caches:
- node
script:
- git push -f https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git master --no-verify
With this, you'll get to Build succeeded!
in a way that your mom would be very proud (because she doesn't understand a thing but she thinks that only you could have done it).
Top comments (0)