Skip to content

Commit

Permalink
fix: rollback alpine to 3.18 (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
hertzg authored Dec 10, 2023
1 parent 5388cbe commit aa84c25
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/alpine.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ const fetchLastAlpineCycleVersions = async () => {
lts: boolean;
}>;

return cycles.slice(0, 2).map((cycles) => cycles.latest);
return cycles
.filter((cycle) => cycle.cycle !== "3.19")
.slice(0, 2)
.map((cycles) => cycles.latest);
};

const ALPINE_VERSIONS = await fetchLastAlpineCycleVersions();
Expand All @@ -27,7 +30,7 @@ const generateTags = (baseVersion: string, gitRef: string) => {
...[
`${gitRef}-alpine-${semMinor(baseVersion)}`,
`${gitRef}-alpine-${semMajor(baseVersion)}`,
],
]
);
}

Expand Down Expand Up @@ -93,7 +96,7 @@ export const createAlpineBuildTasks = (gitRefs: string[]): BuildTask[] => {
cacheFrom: `type=gha,scope=alpine-${alpineVersion}-${gitRef}`,
cacheTo: `type=gha,scope=alpine-${alpineVersion}-${gitRef}`,
};
},
}
);

return tasks;
Expand Down

0 comments on commit aa84c25

Please sign in to comment.