Instrumenting Your CI Pipeline

To make integration with Merkely easy to implement in devops pipelines we provide a docker image merkely/change. Using commands in this image you can log and control different aspects of your software delivery process automatically.

For example, to log your artifact in Merkely you use the command Log Artifact like so:

docker run \
    --env MERKELY_COMMAND=log_artifact \
    --env MERKELY_FINGERPRINT=docker://acme/road-runner:2.3 \
    --env MERKELY_IS_COMPLIANT="${MERKELY_IS_COMPLIANT}" \
    --env MERKELY_ARTIFACT_GIT_COMMIT="${MERKELY_ARTIFACT_GIT_COMMIT}" \
    --env MERKELY_ARTIFACT_GIT_URL="${MERKELY_ARTIFACT_GIT_URL}" \
    --env MERKELY_CI_BUILD_NUMBER="${MERKELY_CI_BUILD_NUMBER}" \
    --env MERKELY_CI_BUILD_URL="${MERKELY_CI_BUILD_URL}" \
    --env MERKELY_USER_DATA="${MERKELY_USER_DATA}" \
    --env MERKELY_OWNER="${MERKELY_OWNER}" \
    --env MERKELY_PIPELINE="${MERKELY_PIPELINE}" \
    --env MERKELY_API_TOKEN="${MERKELY_API_TOKEN}" \
    --env MERKELY_DRY_RUN="${MERKELY_DRY_RUN}" \
    --rm \
    --volume /var/run/docker.sock:/var/run/docker.sock \
    merkely/change:latest