Leff
Leff

Reputation: 1320

Travis CI - docker image not pushed to dockerhub

I am new to CI with travis and I am trying to learn it by following a course. I have created a public repository in dockerhub, and pushed the project to github with .travis.yml file. I have previously connected and authorised travis at github. The github project can be found here. The travis build gets triggered and it appears to be successful, but nothing is pushed to dockerhub.

You can see the build process here:

enter image description here

The travis build appears to be successful, but nothing is pushed to docker hub. On expanding the log I could see this message is being logged:

Must provide --username with --password-stdin

But, I have already set up the environment variables in travis as you can see below, so I don't get why I get this message?

enter image description here

Upvotes: 1

Views: 689

Answers (1)

Leff
Leff

Reputation: 1320

I didn't realise that environment variables need to be set per project. Also I wasn't even getting the option for settings for that repository until I synced again github with travis. Once I done the syncing part one more time, the option appeared and I was able to set the variables for that repository. And then the build process went through and the image was pushed to dockerhub.

Upvotes: 2

Related Questions