Code Monkey home page Code Monkey logo

drone-cowpoke's Introduction

drone-cowpoke

This drone plugin provides a service to post a docker image name to Rancher via cowpoke.

Prerequisites

  • Use buildgoggles or create a .droneTags.yml file.
  • Use leankit/drone-docker plugin to publish the tags in .droneTags.yml.

Example .droneTags.yml

tags:
  - latest
  - v1.0.1
  - my_really_descriptive_very_long_tag

Example:

This shows a sample .drone.yml that builds a Node.JS project:

  • cowpoke_url:
debug: true
build:
  image: node:0.12.10
  commands:
   - npm install
   - npm install git://github.com/arobson/buildgoggles -g
   - buildgoggles

cache:
  mount:
    - node_modules
    - .git

publish:
  docker:
    image: leankit/drone-docker:latest
    environment:
      - DOCKER_LAUNCH_DEBUG=true
    username: $$DOCKER_USER
    password: $$DOCKER_PASS
    email: $$DOCKER_EMAIL
    repo: yourDockerRepo/yourProjectName

deploy:
  cowpoke:
      image: leankit/drone-cowpoke
      environment:
        - DOCKER_LAUNCH_DEBUG=true
      cowpoke_url: https://cowpoke.yourdomain.com
      cowpoke_port: 443
      drone_owner: yourDockerRepo # optional: use if your docker owner doesn't match github
      drone_repo: yourProjectName # optional: use if your docker repo doesn't match github

Testing via script

./drone-cowpoke <<EOF
{
	"workspace": {
		"path": "/app/docker/src"
	},
	"repo": {
		"name": "my-repo",
		"owner": "LeanKit-Labs"
	},
	"vargs": {
		"cowpoke_url": "https://cowpoke",
		"cowpoke_port": 8000,
		"docker_owner": "leankit"
	}
}
EOF

Compile

export GO15VENDOREXPERIMENT=1
go get
go build -a -tags netgo

drone-cowpoke's People

Contributors

arobson avatar jaymedavis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.