CI/CD framework for the Glider aggreagator is based on the GitHub actions features.
- push
- pull_request (and also PR synchronize)*
- pull_request_review
- scheduler events
(*) note: Workflow configuration should include PULL_REVIEWERS
configuration (semicolon-separated list of usernames) that can be the only chosen from the collaborators
These secrets have to be defined in the repository environment:
NOW_TOKEN
: Zeit Now API tokenNOW_PROJECT_ID
: can be obtained from the./now/project.json
NOW_ORG_ID
: can be obtained from the./now/project.json
GH_TOKEN_EXT
: GitHub API token with following access rights: notifications, read:packages, repo, user, workflow, write:discussion, write:packages
push events handling is managed by the unit.yml workflow
pull_request events handling is managed by the integration.yml workflow
pull_request_review events handling is managed by the reviews.yml workflow
develop
branch is linked to thestaging
environmentmaster
branch is linked to theproduction
environment
- A PR from developer's fork to
develop
create a temporarypreview
environment (one per PR) - Once the PR is merged, this environment is promoted to
staging
- A PR from
staging
tomaster
creates arelease candidate
environment - A merge or push in
master
promotes the release candidate to production