CI Pipeline¶
Reference for Conflux's GitLab CI pipeline.
Stages¶
| Stage | Status | Output |
|---|---|---|
quality |
Active | GitLab Code Quality report |
test |
Active | JUnit results, Cobertura coverage |
build |
Work in progress | — |
deploy |
Active | Triggers staging deployment |
PHP CLI Image¶
Staging Deployment¶
The trigger-staging job in the deploy stage triggers a downstream pipeline in platform-integrations/conflux-infrastructure (branch master). It runs on pushes to master. The strategy is depend, so the upstream job waits for the downstream pipeline to complete.
The infrastructure pipeline receives APP_BRANCH (set to the source branch name) so it knows which application branch to deploy. The GitLab environment is named staging with URL https://$APP_HOST.
The APP_HOST variable must be configured in the project's CI/CD settings.
Required Secrets¶
| Variable | Purpose |
|---|---|
GROUP_REGISTRY_USER |
GitLab container registry access |
GROUP_REGISTRY_PASSWORD |
GitLab container registry access |
Running Locally¶
The pipeline can be run on a local machine using gitlab-ci-local. Configuration is in .gitlab-ci-local/.
See the how-to guide for setup steps.