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

Add plugin compat checkout updates

Do not report available updates when pinned
This commit is contained in:
Jeff Wong 2020-07-06 11:48:19 -10:00 committed by GitHub
parent 4f856c3c3c
commit c27e198873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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)