Skip to content

Docker image with Cloud Foundry CLI + HTML5 Repo plugin

Notifications You must be signed in to change notification settings

lucasheim/docker-cf-html5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Cloud Foundry HTML5 Repository Plugin Docker image

Environment loaded with Cloud Foundry CLI and Cloud Foundry HTML5 Repository Plugin. Created to allow deployment of static applications to Cloud Foundry in a CI/CD pipeline.

Usage

docker run -it lucasheim/cf-html5:1.0

This command will fire a /bin/sh session on workdir with the Cloud Foundry CLI + Plugin available.

Jenkins + Piper

If you're using Jenkins + Piper in your pipeline, you can call this image via dockerExecute, like this:

  pipeline {
    agent any
    environment {
      CF_API = "https://your.cf.api.com"
      CF_ORG = "yourOrgName"
      CF_SPACE = "yourSpace"
      CF_HTML5_REPO = "html5RepoInstanceName"
    }

    stages {
      stage('Deploy'){
        steps {
          withCredentials([
            string(credentialsId: "CF_USER", variable: 'CF_USER'),
            string(credentialsId: "CF_PASS", variable: 'CF_PASS')
          ]) {
            dockerExecute(script: this, dockerImage: 'lucasheim/cf-html5:latest') {
              sh """
                cf login -a $CF_API -u $CF_USER -p $CF_PASS -o '$CF_ORG' -s '$CF_SPACE'
                cf html5-push -n $CF_HTML5_REPO build
              """
            }
          } 
        }
      }
    }
  }

About

Docker image with Cloud Foundry CLI + HTML5 Repo plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published