diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2022-05-16 09:55:14 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2022-05-16 09:55:14 +0300 |
commit | ceaadd6a941385ce0b74994a38ca37bce473c5bb (patch) | |
tree | d4770b12305b4018b083545b615746a962ab2ba8 | |
parent | c58f03176bd78ad6dc48f696808327416ff50cf2 (diff) | |
parent | 49e282a211e65f81077060c862024db100dec20a (diff) |
Merge branch 'eread/add-update-targets' into 'main'
Add update Make targets to project
See merge request gitlab-org/gitlab-docs!2662
-rw-r--r-- | Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -22,6 +22,28 @@ clone-all-docs-projects: ../gitlab/.git ../gitlab-runner/.git ../omnibus-gitlab/.git ../charts-gitlab/.git ../gitlab-operator/.git +update-gitlab: ../gitlab/.git + @echo "\nINFO: Stash any changes, switch to master branch, and pull updates to GitLab project.." + @cd ../gitlab && git stash && git checkout master && git pull --ff-only + +update-gitlab-runner: ../gitlab-runner/.git + @echo "\nINFO: Stash any changes, switch to main branch, and pull updates to GitLab Runner project.." + @cd ../gitlab-runner && git stash && git checkout main && git pull --ff-only + +update-omnibus-gitlab: ../omnibus-gitlab/.git + @echo "\nINFO: Stash any changes, switch to master branch, and pull updates to Omnibus GitLab project.." + @cd ../omnibus-gitlab && git stash && git checkout master && git pull --ff-only + +update-charts-gitlab: ../charts-gitlab/.git + @echo "\nINFO: Stash any changes, switch to master branch, and pull updates to GitLab Chart project.." + @cd ../charts-gitlab && git stash && git checkout master && git pull --ff-only + +update-gitlab-operator: ../gitlab-operator/.git + @echo "\nINFO: Stash any changes, switch to master branch, and pull updates to GitLab Operator project.." + @cd ../gitlab-operator && git stash && git checkout master && git pull --ff-only + +update-all-docs-projects: update-gitlab update-gitlab-runner update-omnibus-gitlab update-charts-gitlab update-gitlab-operator + up: setup view compile: setup @@ -36,6 +58,12 @@ live: compile setup: @asdf install && bundle install && yarn install --frozen-lockfile +update: + @echo "\nINFO: Stash any changes, switch to main branch, and pull updates to GitLab Docs project.." + @git stash && git checkout main && git pull --ff-only + +update-all-projects: update update-all-docs-projects + clean: @rm -rf tmp public |