ce-deploy

Usage

While you can re-use/fork roles or call playbooks directly from your deployment tool, it is recommended to use the provided wrapper scripts, as they will take care of setting up the needed environments.

Deploy with the “build” script

In the script folder, you’ll see a build.sh script. This is the easiest/safest way to trigger deployments, as it bundles all the steps in one.

Arguments

You will need to pass at least the following information:

Steps

What this will do is:

Example

This how you’d call the build.sh from Jenkins:

/home/deploy/ce-deploy/scripts/build.sh --repo "git@gitlab.com:example/myproject.git" --branch "dev" --playbook "deploy/deploy-dev.yml" --build-number "$BUILD_NUMBER"

Deploy with individual steps

If you prefer having more control over the execution of steps, you can reproduce the same outcome using the other individual scripts.

Steps