@invarn/cli 0.9.261 → 0.9.262
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/invarn.cjs +7 -8
- package/dist/local-run-worker.mjs +1 -1
- package/dist/sdk.mjs +6 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,6 +47,36 @@ Nothing leaves your machine without a `y`: secret discovery only looks for the
|
|
|
47
47
|
keys your pipeline itself declares and leaves empty, values are never printed,
|
|
48
48
|
and the upload sits behind one confirmation that defaults to No.
|
|
49
49
|
|
|
50
|
+
### How pushes and pull requests build
|
|
51
|
+
|
|
52
|
+
Pushes and pull requests build from the `trigger_map` of the project's
|
|
53
|
+
pipeline. Which pipeline that is depends on your default branch:
|
|
54
|
+
|
|
55
|
+
- **No `.ci/pipelines/cibuild.yml` on the default branch.** Invarn builds
|
|
56
|
+
from the pipeline it generated when you added the project (the one you see
|
|
57
|
+
in the dashboard), with its triggers and its YAML. Nothing has to be
|
|
58
|
+
committed for builds to run.
|
|
59
|
+
- **`.ci/pipelines/cibuild.yml` on the default branch.** Committing it on the
|
|
60
|
+
default branch replaces the generated pipeline: from the push that adds it
|
|
61
|
+
on, every push and pull request builds from the files in your repository.
|
|
62
|
+
A branch or pull request that adds the file keeps building from the
|
|
63
|
+
generated pipeline until the file is merged into the default branch.
|
|
64
|
+
|
|
65
|
+
Other pipeline files in `.ci/pipelines/` (an agent's, say) do not replace the
|
|
66
|
+
generated pipeline. Each one builds from the repository at the pushed commit
|
|
67
|
+
whenever its own `trigger_map` matches, so one push can start both a build of
|
|
68
|
+
the generated pipeline and a build of each other matching file. Agent
|
|
69
|
+
pipelines only ever build from a file in the repository.
|
|
70
|
+
|
|
71
|
+
While a new project is still setting up its first build (or waiting for the
|
|
72
|
+
secrets it needs), pushes from the generated pipeline do not build; the first
|
|
73
|
+
build starts by itself when setup is done.
|
|
74
|
+
|
|
75
|
+
To stop builds, disconnect the repository in the dashboard (Settings →
|
|
76
|
+
Connections; this deletes the project). Removing the pipeline file from the
|
|
77
|
+
default branch does not stop them; Invarn goes back to building from the
|
|
78
|
+
generated pipeline.
|
|
79
|
+
|
|
50
80
|
## Getting Started
|
|
51
81
|
|
|
52
82
|
### 1. Authenticate
|