Skip to content

Commit

Permalink
[gha] correct images to use (#19951)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh authored Jun 21, 2024
1 parent 294b37a commit cf72802
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/jetbrains-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
curl -fsSL https://github.com/csweichel/oci-tool/releases/download/v0.2.1/oci-tool_0.2.1_linux_amd64.tar.gz | tar xz -C /usr/local/bin
chmod +x /usr/local/bin/oci-tool
cd ./components/ide/gha-update-image
yarn
npm i -g bun
Expand Down
4 changes: 2 additions & 2 deletions components/ide/gha-update-image/lib/code-pin-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export async function updateCodeIDEConfigMapJson() {
console.log("updating related pinned version", installationCodeVersion);
newJson.ideOptions.options.code.versions.unshift({
version: previousCodeVersion,
image: newJson.ideOptions.options.code.image,
imageLayers: newJson.ideOptions.options.code.imageLayers,
image: ideConfigmapJsonObj.ideOptions.options.code.image,
imageLayers: ideConfigmapJsonObj.ideOptions.options.code.imageLayers,
});
appendNewVersion = true;
}
Expand Down
4 changes: 2 additions & 2 deletions components/ide/gha-update-image/lib/jb-pin-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export const appendPinVersionsIntoIDEConfigMap = async (updatedIDEs: string[] |
const previousVersion = await getIDEVersionOfImage(ideConfigMap.ideOptions.options[ide].image);
const previousInfo = {
version: previousVersion,
image: ideConfigMap.ideOptions.options[ide].image,
imageLayers: ideConfigMap.ideOptions.options[ide].imageLayers,
image: ideConfigMap.ideOptions.options[ide].image.replaceAll("eu.gcr.io/gitpod-core-dev/build", "{{.Repository}}"),
imageLayers: ideConfigMap.ideOptions.options[ide].imageLayers.map((e: string) => e.replaceAll("eu.gcr.io/gitpod-core-dev/build", "{{.Repository}}")),
};

if (!updatedIDEs || !updatedIDEs.includes(ide)) {
Expand Down

0 comments on commit cf72802

Please sign in to comment.