Deploy Docker Image to CF using Travis CI

Shwet

I am trying to push my docker image to CF landscape through Travis build.

I have a Dockerfile. I created a image pushed it to docker hub. Now I have to push this image from docker hub to CF using Travis CI. To push an app normally to CF using Travis - We use this :

deploy:
   provider: cloudfoundry
   username: [email protected]
   password: supersecretpassword
   api: https://api.run.pivotal.io
   organization: myawesomeorganization
   space: staging
   manifest: manifest-staging.yml       # (optional)  Defaults to manifest.yml.
   app_name: My app name                # (optional)

But not sure how this works wrt docker image.

Shwet

I figured it how to achieve. We can use docker attribute in manifest.yml See this

And travis.yml shall look like as it is mentioned above.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

using docker image in travis ci (w/o Dockerfile or building a container)

Continuous Deployment Using Travis CI and Docker

Test docker containers using travis-ci

Deploy jar File using Travis CI and Gradle automatic build count

How to deploy a successful build using Travis CI and Scalr

failed to deploy Travis CI `Python`

Set .travis.yml to automatically deploy docker image

Travis CI running on Docker Image - Switch to last comited branch

Local testing of Perl repository using Travis CI (with docker)

Using Travis CI with Android

Pipeline GitHub -> Travis CI -> Docker

Travis CI - doesn't deploy build folder?

How to deploy an Agda library on Travis CI?

Travis CI for R packages: no deploy key found

Travis-CI Gem Deploy Not Working

Travis CI deploy with cron.yaml to gcp

Unable to deploy docker image to GKE using Jenkins

How to deploy a Docker container using a CI/CD service (Codeship)?

Deploy laravel using gitlab ci in VPS WITHOUT DOCKER

How to set "deploy on branch", with branch name matching regex a expression using Travis CI?

Why is Docker image is not appearing on Docker Hub after being pushed from Travis CI

Using a private Docker Image from Gitlab Registry as the base image for CI

Can Travis CI cache docker images?

GraalVM with native-image compilation in Travis CI

Travis CI deploy to S3 bucket not working with secure keys

Deploy different branches to different Heroku applications with Travis-CI

Travis CI deploy: invalid option "--secret_access_key="

Travis CI builds app but doesn't deploy to Surge.sh

Travis-CI only deploy once after all builds finish