This article is about Codeship Basic.

Deploy to anynines

Estimated Reading Time: 1 min

What is anynines?

anynines is a PaaS built on top of CloudFoundry and OpenStack.

They have a great Getting Started guide which we definitely encourage you to check out. Also, see their documentation available at support.anynines.com.

Deploying

As for getting started with anynines on Codeship, start by getting your application to deploy from your local machine. Once this is done, you need to add the following environment variables to your project settings.

CF_USER
CF_PASSWORD
CF_ORG
CF_SPACE
CF_APPLICATION

Then create a new script based deployment and paste the following commands.

cf6 api https://api.de.a9s.eu
cf6 auth "${CF_USER}" "${CF_PASSWORD}"
cf6 target -o "${CF_ORG}" -s "${CF_SPACE}"
cf6 push "${CF_APPLICATION}"

This will deploy your application on each push to the specific branch you configured the deployment for.

If you have more thorough requirements, like blue / green deployments see a great article written by the folks at anynines about deploying to Codeship, which is available at their blog.

Need More Help?

Get in touch if you need more help, or post on Stack Overflow using the tag #Codeship.

  • Ask The Helpdesk A Question
  • Code Examples And Sample Projects
    • Was This Article Helpful?