Skip to content

Comments

Update VDC by latest tag#3344

Merged
xmonader merged 2 commits intodevelopmentfrom
development_update_to_latest_tag
Nov 14, 2021
Merged

Update VDC by latest tag#3344
xmonader merged 2 commits intodevelopmentfrom
development_update_to_latest_tag

Conversation

@sameh-farouk
Copy link
Member

@sameh-farouk sameh-farouk commented Nov 14, 2021

Description

  • updating from the UI or update rest API url endpoint without specifying branch param will update using the latest remote tag.

Changes

  • now update.sh script can work with git tag ref too. before it was accepted only a branch name.
  • modifying the update API controller to check the code from the latest remote release by default unless the branch param was given with a specific branch name. before it was checked the HEAD of the development branch.

Related Issues

Checklist

branch = os.environ.get("SDK_VERSION", "development")
ref = _get_latest_remote_tag
sdk_path = "/sandbox/code/github/threefoldtech/js-sdk"
cmd = f"bash jumpscale/packages/vdc_dashboard/scripts/update.sh {branch}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

branch renamed to be ref as abov changes

@xmonader xmonader merged commit e2475f8 into development Nov 14, 2021
@xmonader xmonader deleted the development_update_to_latest_tag branch November 14, 2021 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants