You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-3
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,11 @@ The expected repository layout is:
21
21
Dockerfile in the root when only building a single command
22
22
-`Makefile` - includes `release-tools/build.make` and sets
23
23
configuration variables
24
-
-`.travis.yml` - a symlink to `release-tools/.travis.yml`
24
+
-`.prow.sh` script which imports `release-tools/prow.sh`
25
+
and may contain further customization
26
+
-`.cloudbuild.sh` and `cloudbuild.yaml` as symlinks to
27
+
the corresponding files in `release-tools` or (if necessary)
28
+
as custom files
25
29
26
30
To create a release, tag a certain revision with a name that
27
31
starts with `v`, for example `v1.0.0`, then `make push`
@@ -44,10 +48,17 @@ is the recommended way of maintaining a copy of the rules inside the
44
48
changes also locally, test them and then push them back to the shared
45
49
repository at a later time.
46
50
51
+
We no longer care about importing the full commit history, so `--squash` should be used
52
+
when submitting a `release-tools` update. Also make sure that the PR for that
53
+
contains the automatically generated commit message in the PR description.
54
+
It contains the list of individual commits that were squashed. The script from
55
+
https://github.com/kubernetes-csi/csi-release-tools/issues/7 can create such
56
+
PRs automatically.
57
+
47
58
Cheat sheet:
48
59
49
-
-`git subtree add --prefix=release-tools https://github.com/kubernetes-csi/csi-release-tools.git master` - add release tools to a repo which does not have them yet (only once)
50
-
-`git subtree pull --prefix=release-tools https://github.com/kubernetes-csi/csi-release-tools.git master` - update local copy to latest upstream (whenever upstream changes)
60
+
-`git subtree add --squash --prefix=release-tools https://github.com/kubernetes-csi/csi-release-tools.git master` - add release tools to a repo which does not have them yet (only once)
61
+
-`git subtree pull --squash --prefix=release-tools https://github.com/kubernetes-csi/csi-release-tools.git master` - update local copy to latest upstream (whenever upstream changes)
51
62
- edit, `git commit`, `git subtree push --prefix=release-tools [email protected]:<user>/csi-release-tools.git <my-new-or-existing-branch>` - push to a new branch before submitting a PR
0 commit comments