@@ -3,6 +3,8 @@ set positional-arguments
33set shell := [" bash" , " -cue" ]
44ctr := " docker"
55registry := " ghcr.io/sdsc-ordes/deid-module"
6+ platforms := " linux/amd64"
7+ images := " presidio-anonymizer presidio-analyzer"
68
79# Default recipe to list all recipes.
810[private ]
@@ -13,11 +15,9 @@ default:
1315build tag = " latest" * args :
1416 #!/usr/bin/env bash
1517
16- PLATFORMS=(" linux/amd64" )
17- IMAGES=(" presidio-anonymizer" " presidio-analyzer" )
1818 cd {{ root_dir}} / external/ repos/ presidio
19- for image in ${IMAGES[@] }; do
20- for platform in ${PLATFORMS[@] }; do
19+ for image in {{ images } } ; do
20+ for platform in {{ platforms } } ; do
2121
2222 # Create platform-specific tag
2323 PLATFORM_TAG=$(echo " ${platform}" | sed ' s/\//-/g' )
@@ -29,3 +29,19 @@ build tag="latest" *args:
2929
3030 done
3131 done
32+
33+
34+ # Create multi-platform manifests
35+ create-manifests : tag =latest
36+ #!/usr/bin/env bash
37+
38+ cd {{ root_dir}} / external/ repos/ presidio
39+ for image in {{ images}} ; do
40+ for platform in {{ platforms}} ; do
41+
42+ echo " Creating manifest for $image"
43+ PLATFORM_TAG=$(echo " ${platform}" | sed ' s/\//-/g' )
44+ docker buildx imagetools create \
45+ - -tag " {{ registry}} /${image}:${{ tag}} " \
46+ " {{ registry}} /${image}:{{ tag}} -${PLATFORM_TAG}"
47+ done
0 commit comments