Switch to url-based subtree with make-update

Add new `make-update` make command to update the .gitlab subtree.
This commit is contained in:
ducoterra
2021-10-31 22:56:47 -04:00
parent ba12c923ba
commit da69418b0d
2 changed files with 8 additions and 3 deletions

View File

@@ -8,3 +8,9 @@ include .gitlab/make/docker.makefile
include .gitlab/make/helm.makefile
include .gitlab/make/kaniko.makefile
include .gitlab/make/truenas.makefile
.PHONY: make-update
make-update:
@git stash
@git subtree pull --prefix .gitlab git@gitlab.ducoterra.net:services/common.git main --squash
@git stash pop

View File

@@ -2,9 +2,8 @@
```bash
# Add the subtree as a remote
git remote add common git@gitlab.ducoterra.net:services/common.git
git subtree add --prefix .gitlab common main
git subtree add --prefix .gitlab git@gitlab.ducoterra.net:services/common.git main --squash
# Now you can run the following to update
git subtree pull --prefix .gitlab common main
make make-update
```