Correct the pipeline subtree workflow

This commit is contained in:
2026-09-17 14:19:57 +00:00
parent 10ad31c176
commit 556b6ed32e

View File

@@ -43,22 +43,24 @@ claim that version `0.1.0` has been published or tagged.
[`ansible-role-dnd-pipeline`](https://gitea.maximumdirect.net/eric/ansible-role-dnd-pipeline)
is authoritative. Make and review role changes there, then import the reviewed
commit; do not edit `roles/pipeline` directly.
commit; do not edit `roles/pipeline` directly. The selected commit or immutable
tag must be pushed to the authoritative repository before collection assembly.
Replace `PUSHED_COMMIT_OR_TAG` below with that remote revision.
Initial import:
```sh
pipeline_commit=$(git -C ../ansible-role-dnd-pipeline rev-parse HEAD)
pipeline_revision=PUSHED_COMMIT_OR_TAG
git subtree add --prefix=roles/pipeline \
https://gitea.maximumdirect.net/eric/ansible-role-dnd-pipeline.git \
"$pipeline_commit" --squash
"$pipeline_revision" --squash
```
Subsequent update:
```sh
pipeline_commit=$(git -C ../ansible-role-dnd-pipeline rev-parse HEAD)
pipeline_revision=PUSHED_COMMIT_OR_TAG
git subtree pull --prefix=roles/pipeline \
https://gitea.maximumdirect.net/eric/ansible-role-dnd-pipeline.git \
"$pipeline_commit" --squash
"$pipeline_revision" --squash
```