Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wodby/wodby-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Wodby CI

The following examples ought to help you set up CI/CD workflows on Wodby 2.0 using Wodby CI and third-party CI providers.

For Wodby 1.0 please see 1.0 branch.

See full documentation on Wodby CI at https://wodby.com/docs/2.0/cicd/wodby-ci.

Examples

PHP app

The following examples are for a simple PHP stack:

  1. Installs your composer dependencies from composer.json
  2. Builds docker images for php and nginx services with contents of the current directory ./ (optionally you can specify docroot directory for nginx image to omit vendor directory)
  3. Caches contents of ~/.composer directory and restores during the next build based on composer.lock checksum
  4. Pushes images to associated docker registry (Wodby registry by default)
  5. Triggers deployment of the new build to your app instance

Available providers:

Node app

The following examples are for a simple Node stack:

  1. Installs your node dependencies from package.json
  2. Builds docker images for node service with contents of the current directory ./
  3. Caches contents of ~/.npm directory and restores during the next build based on package-lock.json checksum
  4. Pushes images to associated docker registry (Wodby registry by default)
  5. Triggers deployment of the new build to your app instance

Available providers:

Boilerplates

You can also find boilerplate for build templates for the following stacks:

Third-party CI

You can use Wodby 2.0 with third-party CI services like GitHub Actions, GitLab CI, CircleCI, etc. by using Wodby CLI.

The GitHub Actions examples in this repository use wodby/actions/setup-wodby-cli on GitHub-hosted Ubuntu runners.

You can also use any custom CI provider in a similar way with Wodby CLI.

GitLab CI examples in this repository use the docker-in-docker method.

For providers that support it, we recommend using a VM-based environment over a docker-based environment to avoid issues related to docker-in-docker in the build process, since we are building docker images. The CircleCI examples in this repository use the machine executor for that reason.

Custom Dockerfile

You can use custom Dockerfile to build your services. Just specify the path to your Dockerfile -f Dockerfile in the pipeline configuration.

Contributors