Skip to content

Commit a8d862d

Browse files
committed
CI tag docker image develop, multiple tags #990
1 parent dbf8994 commit a8d862d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.dagger/src/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,9 @@ VOLUME /atomic-storage
575575

576576
@func()
577577
/** Creates Docker images for all supported architectures */
578-
async createDockerImages(@argument() tag: string = "latest"): Promise<void> {
578+
async createDockerImages(
579+
@argument() tags: string[] = ["develop"],
580+
): Promise<void> {
579581
const targets = Object.keys(TARGET_IMAGE_MAP);
580582

581583
// Build one variant first.
@@ -588,8 +590,10 @@ VOLUME /atomic-storage
588590
.map((target) => this.createDockerImage(target));
589591

590592
// Publish the multi-platform image with all variants
591-
await firstImage.publish(`joepmeneer/atomic-server:${tag}`, {
592-
platformVariants: otherVariants,
593-
});
593+
for (const tag of tags) {
594+
await firstImage.publish(`joepmeneer/atomic-server:${tag}`, {
595+
platformVariants: otherVariants,
596+
});
597+
}
594598
}
595599
}

0 commit comments

Comments
 (0)