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.yml
and 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
galoybot
has permissions to the target repository and it also hasgaloybot
as 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.
actions
folder - Gets synced to.github/workflows/vendor
folderci/tasks
folder - Get synced toci/vendor
folder
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:check
afterpnpm install
) - Audit (
pnpm audit --prod --audit-level=high
afterpnpm install --frozen-lockfile
)
-
Concourse CI:
- supports yarn and pnpm
- Helpers (
unpack_deps
for caching node_modules) - Install Deps (autodetects pckMgr and then
yarn install
orpnpm install
) - Check Code (autodetects pckMgr and then
yarn code:check
orpnpm code:check
) - Audit (autodetects pckMgr and then
yarn audit --groups dependencies --level high
orpnpm 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