Skip to content

Commit 7c263c0

Browse files
committed
Fix image tag
1 parent 64ce5f7 commit 7c263c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/tags.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ incus | 1:6.6-debian12-202411092101 | https://pkgs.zabbly.com/incus/stable bookw
2525
const dateStr = `${date.getFullYear()}${date.getMonth()+1}${date.getDate()}`
2626

2727
for (const version of versions) {
28-
const image = `ghcr.io/${process.env.IMAGE_NAME}-${baseImage}-${version}-${dateStr}`
28+
const incusVersion = version.split(':')[1].split('-')[0] // 1:6.7-debian12-202411151825 -> 6.7
29+
const image = `ghcr.io/${process.env.IMAGE_NAME}-${baseImage}-${incusVersion}-${dateStr}`
2930

3031
await $`docker buildx build --platform linux/amd64,linux/arm64 --build-arg BASE_IMAGE=${baseImage} --build-arg INCUS_VERSION=${version} -f ./debian-version/Dockerfile -t ${image} .`
3132

0 commit comments

Comments
 (0)