Skip to content

Commit 9779427

Browse files
committed
update Dockerfile to clone the latest commit from the main branch instead of fetching the latest release tag
1 parent 7e96852 commit 9779427

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,8 @@ RUN cd /tmp && \
113113
repo=$(echo "$ext" | cut -d'|' -f1) && \
114114
build_cmd=$(echo "$ext" | cut -d'|' -f2) && \
115115
output_file=$(echo "$ext" | cut -d'|' -f3) && \
116-
# Fetch the latest release tag from GitHub API
117-
echo "Fetching latest release for $repo..." && \
118-
latest_tag=$(curl -s "https://api.github.com/repos/microsoft/$repo/releases/latest" | jq -r .tag_name) && \
119-
echo "Using version: $latest_tag" && \
120-
# Clone the repository at the latest release tag
121-
git clone --branch "$latest_tag" --depth 1 "https://github.com/microsoft/$repo.git" && \
116+
# Clone the latest commit from the main branch
117+
git clone --depth 1 "https://github.com/microsoft/$repo.git" && \
122118
cd "$repo" && \
123119
# Modify package.json to remove the editor/title/run contributions if it exists
124120
jq 'del(.contributes.menus."editor/title/run")' package.json > package.tmp.json && \

0 commit comments

Comments
 (0)