A dockerized app ready for use with Shippable's Docker Build Support
There are 2 ways to set up Docker build with Shippable - pre CI or post CI. Pre CI workflow is:
- Build the image using Dockerfile at the root of your repo
- Pull code from GitHub/Bitbucket and test code in the container
- Push container to docker hub
Post CI workflow is:
- Pull image specified from Docker Hub (default is minv2)
- Pull code from GitHub/Bitbucket and test in container
- If CI passs, build container from Dockerfile at the root of the repo
- Push container to docker hub
To use the pre-CI workflow,
- Fork this repository
- Connect your Shippable account to your Docker Hub account
- Enable the repository on Shippable
- On the repo page, go to 'Settings'
- Choose the following -
- Build image : Custom Image
- Custom image action : Build
- Custom image name : (docker hub username)/(image name)
- Source code path : (source code path for image you want to build)
- Push to Docker Hub : Check
- Make sure the Dockerfile for the image you want to build is at the root of your repo
- Trigger a manual or webhook build
- After the build is complete, make sure your Docker Hub account has the image you just pushed. The image should be tagged with .
To use the post-CI workflow,
- Fork this repository
- Connect your Shippable account to your Docker Hub account
- Enable the repository on Shippable
- On the repo page, go to 'Settings'
- Choose the following -
- Build image : Custom Image
- Custom image action : Build
- Custom image name : (docker hub username)/(image name)
- Source code path : (source code path for image you want to build)
- Docker build when finished : Check
- Image to pull: Specify image you want to run tests on, default is shippable/minv2
- Push to Docker Hub : Check
- Make sure the Dockerfile for the image you want to build is at the root of your repo
- Trigger a manual or webhook build
- After the build is complete, make sure your Docker Hub account has the right image. The image should be tagged with .