Skip to content

A Wercker step to build a Docker image and push it to a registry

Notifications You must be signed in to change notification settings

EdgecaseInc/wercker-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wercker step for Docker

wercker status

This wercker step allows to build a project as a Docker image and push the image created in a Docker registry.

This step must be used with a wercker box built with Docker Support.

Docker integration workflow

To build and push a Docker image, the Wercker step follow this steps :

The following configuration allows to setup this step :

  • image (required): Image to push to the registry
  • path (optional): The build context path. By default: .

Step 2 : Tagging image

The following configuration allows to setup this step :

  • tags (optional): A comma separated list of tags. Each tagged images will be pushed. By default: latest

The following configuration allows to setup this step :

  • registry (optional) Docker registry server, if no server is specified "https://index.docker.io/v1/" is the default.
  • username (required) Username needed to login to the Docker registry
  • password (required) Password needed to login to the Docker registry
  • email (required) Email needed to login to the Docker registry

Example

The following example build and push a docker image to a private Docker registry :

deploy:
  steps:
  ...
    - nhuray/docker:
        image: myimage
        tags: ${WERCKER_GIT_COMMIT:0:7},latest
        registry: tutum.co
        email: nicolas.huray@gmail.com
        password: *****
        username: nhuray

About

A Wercker step to build a Docker image and push it to a registry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%