prometheus-postgresql-adapter
prometheus-postgresql-adapter copied to clipboard
Added Travis build file with job matrix
Addresses https://github.com/timescale/prometheus-postgresql-adapter/issues/33
Proof of integration: Travis Build: https://travis-ci.com/sgama/prometheus-postgresql-adapter/builds/98761312 Dockerhub Repository: https://hub.docker.com/r/solardesigner/prometheus-postgresql-adapter/tags
To get this CICD pipeline setup, you will first need to hook this repository into TravisCI. Then configure the Environment Variables within the settings of the Travis Job for your Dockerhub repo.
I used the variables DOCKER_USERNAME and DOCKER_PASSWORD which contained the credentials for Dockerhub. Be sure to uncheck the slider for "Displaying value in the build log".
I left a few lines commented just in case you wanted to build dev branches as well.