Wercker is a continuous delivery “YAPT” pipelines tool…yes, Yet Another Pipelines Tool, ja ja 😉
Well, Wercker is easy to use, let’s have a look.
- Create a project for containeraizing something
- Create a Wercker account if you don’t have one
- Connect Wercker with a repo under [Settings]
- Push your code to a repo, such as GitHub, BitBucket, Oracle Developer Cloud Service,…
- Create a new Wercker application
- Select one of the supported repos and click [Next]
- Select one of your projects and click [Next]
- Select the following
- Finally click [Create]
- In the new created application page, select the language of your app and click copy to clipboard
- Add the code to a file named wercker.yml, comment the test line and push the file to the repo
- Take a look to the build status
- Add environment variables for your login to a docker V2 compliant repository
- Add the following at the end of wercker.yml deploy:
steps: - internal/docker-build: dockerfile: Dockerfile image-name: kfkconsumer-node - internal/docker-push: username: $USERNAME password: $PASSWORD tag: mytag repository: javiermugueta/kfkconsumer-node
- Create new pipeline and name it deploy
- Add a new step with the deploy pipeline created previously
-
Make changes to project, push and see what happens
-
That’s all!
😉 Enjoy