Skip to main content
Version: 1.9.0

Clever deploy

Overview​

GitLab deploy jobs log in with Clever tools and deploy the app. develop deploys Devlab. master deploys production and is manual.

How it works​

The job image is clevercloud/clever-tools:latest with entrypoint: [""]. GitLab then runs the job script in its own shell. The script logs in, links the app, and runs clever deploy.

Key files​

  • .gitlab-ci.yml — Devlab, dry-run, and production deploy jobs

Technical decisions​

  • An empty entrypoint lets the runner start the script. The image entrypoint was exiting before clever ran.

Known issues​

  • The pipeline does not run lint or tests. A green pipeline only means the deploy job was created.

Next steps​

  • Add a test job that does not need Clever credentials