This repo contains:
- shared CI tasks synced across repositories.
- It also contains the CI pipeline for image creation needed by CI
- and a backup pipeline to backup all repositories of the blinkbitcoin organization and push them to the backup bucket.
- Clone and get into the repository:
gh repo clone blinkbitcoin/concourse-shared
cd concourse-shared
- Edit
ci/values.ymland undersrc_repos, add the new repository. The key name for the repository must be the name of the repository as on GitHub under blinkbitcoin organization. This file contains many feature flags according to which the Pull Request will be created with shared tasks. - Push the change on the CI.
ci/repipe
- Make sure that
galoybothas permissions to the target repository and it also hasgaloybotas a possible label in the PR.
This would, in turn create a new job under the concourse-shared pipeline and when it runs, it would automatically create the pull request for you on the specified target repository.
actionsfolder - Gets synced to.github/workflows/vendorfolderci/tasksfolder - Get synced toci/vendorfolder
Feature Flags nodejs, rust, chart and docker are supported right now.
Files whose names don't start with them are treated as common and synced to all.
| Feature | Description |
|---|---|
| Nodejs | Source Codebase is Node.js |
| Rust | Source Codebase is Rust |
| Docker | Docker image is present in the source |
| Chart | The docker image getting generated also has a Helm Chart |
-
GH Actions:
- only supports pnpm, no more yarn
- Check Code (
pnpm code:checkafterpnpm install) - Audit (
pnpm audit --prod --audit-level=highafterpnpm install --frozen-lockfile)
-
Concourse CI:
- supports yarn and pnpm
- Helpers (
unpack_depsfor caching node_modules) - Install Deps (autodetects pckMgr and then
yarn installorpnpm install) - Check Code (autodetects pckMgr and then
yarn code:checkorpnpm code:check) - Audit (autodetects pckMgr and then
yarn audit --groups dependencies --level highorpnpm audit --prod --audit-level=high)
-
GH Actions:
- Check Code (
make check-code)
- Check Code (
-
Concourse CI:
- Helpers (Some
CARGO_envs) - Check Code (
make check-code)
- Helpers (Some
- Concorse CI:
- Prep Docker Build Env
- Concourse CI:
- Open Charts PR