Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-05-16 01:49:40 +0300
committerEvan Read <eread@gitlab.com>2022-05-16 01:54:33 +0300
commit49e282a211e65f81077060c862024db100dec20a (patch)
tree87f7f11dda8b8be1693f0dea1a8faad95a05cbb0
parenta487554afd9eea7b082748df30648dddb96ff95a (diff)
Add update Make targets to projecteread/add-update-targets
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 865d90fd..ccedce96 100644
--- a/Makefile
+++ b/Makefile
@@ -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