Skip to content
Snippets Groups Projects
Unverified Commit 78e7df82 authored by Craig Miskell's avatar Craig Miskell
Browse files

fix: Install asdf plugins before updating variables

"asdf current" reports installed versions, not just what's in .tool-versions, so if we don't run ./install-asdf-plugins.sh first then running the update command will commonly remove some or all of the entries in .gitlab-ci-asdf-versions.yml, depending on what asdf plugins are installed in the image running this update.

An example of this occuring is https://gitlab.com/gitlab-com/gl-infra/gitlab-dedicated/sandbox/switchboard_la/-/merge_requests/36/diffs?commit_id=70f712ad9b4528af356f02b8e81fc64fe4b5ac70
parent 2c3ad882
No related branches found
No related tags found
No related merge requests found
Pipeline #15276045 passed
Loading
Loading
@@ -85,7 +85,7 @@
"extractVersion": "^v?(?<version>.*)",
"postUpgradeTasks": {
"commands": [
"if [ -x ./scripts/update-asdf-version-variables.sh ]; then ASDF_DIR=/asdf ./scripts/update-asdf-version-variables.sh; fi"
"if [ -x ./scripts/update-asdf-version-variables.sh ]; then ASDF_DIR=/asdf ./scripts/install-asdf-plugins.sh && ./scripts/update-asdf-version-variables.sh; fi"
],
"fileFilters": [
".gitlab-ci-*.yml"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment