FEATURE: add plugin pull compatible checks for UI updates (#71)

FEATURE: add plugin pull compatible checks for UI updates (#71)

Add plugin compat checkout updates

Do not report available updates when pinned

diff --git a/lib/docker_manager/git_repo.rb b/lib/docker_manager/git_repo.rb
index 2cb0a16..e425eba 100644
--- a/lib/docker_manager/git_repo.rb
+++ b/lib/docker_manager/git_repo.rb
@@ -113,7 +113,7 @@ class DockerManager::GitRepo
   end
 
   def tracking_branch
-    run "for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)"
+    Discourse.find_compatible_git_resource(path) || run("for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)")
   end
 
   def run(cmd)
diff --git a/lib/docker_manager/upgrader.rb b/lib/docker_manager/upgrader.rb
index 0d8b417..95c8b8d 100644
--- a/lib/docker_manager/upgrader.rb
+++ b/lib/docker_manager/upgrader.rb
@@ -73,6 +73,11 @@ class DockerManager::Upgrader
     end
 
     run("bundle install --deployment --jobs 4 --without test development")
+    begin
+      run("bundle exec rake plugin:pull_compatible_all")
+    rescue RuntimeError
+      log "Unable checkout compatible plugin versions"
+    end
     percent(30)
     run("SKIP_POST_DEPLOYMENT_MIGRATIONS=1 bundle exec rake multisite:migrate")
     percent(40)

GitHub sha: c27e1988

This commit appears in #71 which was approved by eviltrout. It was merged by featheredtoast.

May this broke something? Dont know for sure, but could you guys please have a read here: https://meta.discourse.org/t/blank-upgrade-page-afer-upgrading-docker-manager/157115/