Skip to content

Commit

Permalink
build: Adjust the release automation to handle ghcr (#2852)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolajb authored Nov 21, 2024
1 parent 67ee3f8 commit 1893b8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/release/pkg/extraimages/extraimages.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func UpdateExtraImagesVersions(kommanderApplicationsRepo, chartVersion string) e

if err := os.WriteFile(
matches[0],
[]byte(fmt.Sprintf("mesosphere/kommander-applications-server:%s\n", chartVersion)),
[]byte(fmt.Sprintf("ghcr.io/mesosphere/kommander-applications-server:%s\n", chartVersion)),
0o644,
); err != nil {
return fmt.Errorf("error while updating extra-images file: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion hack/release/pkg/extraimages/extraimages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ func TestUpdateExtraImages(t *testing.T) {
assert.Len(t, afterUpgradeFile, 1)
contentes, err := os.ReadFile(afterUpgradeFile[0])
require.NoError(t, err)
assert.Equal(t, "mesosphere/kommander-applications-server:v1.2.3\n", string(contentes))
assert.Equal(t, "ghcr.io/mesosphere/kommander-applications-server:v1.2.3\n", string(contentes))
}

0 comments on commit 1893b8e

Please sign in to comment.