File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ The accepted inputs are:
77
88| Name | Type | Default | Mandatory | Description |
99| ---------------| -----------| -----------| -------------| -----------------------------------------------------------------|
10- | ` tag ` | String | ` latest ` | No | Tag to apply to the image |
10+ | ` tag ` | String | ` latest ` | No | Tags ( * comma separated * ) to apply to the image |
1111| ` imageName ` | String | | Yes | Name of the image |
1212| ` dockerFile ` | String | ` Dockerfile ` | No | Name of the Dockerfile |
1313| ` publish ` | Boolean | ` false ` | No | Indicate if the builded image should be published on Docker HUB |
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ branding:
55 color : blue
66inputs :
77 tag :
8- description : " Tag to apply to the image"
8+ description : " Tags (comma separated) to apply to the image"
99 default : " latest"
1010 imageName :
1111 description : " Name of the image"
Original file line number Diff line number Diff line change 11#! /bin/sh -l
22export DOCKER_CLI_EXPERIMENTAL=enabled
3- docker buildx build --platform $1 -t $2 :$3 -f $4 .
3+ DOCKER_BUILDX_TAG_OPTS=
4+ for TAG in $( echo " $3 " | tr ' ,' ' ' )
5+ do
6+ DOCKER_BUILDX_TAG_OPTS=" $DOCKER_BUILDX_TAG_OPTS --tag $2 :$TAG "
7+ done
8+ docker buildx build --platform $1 $DOCKER_BUILDX_TAG_OPTS -f $4 .
Original file line number Diff line number Diff line change 11#! /bin/sh -l
22export DOCKER_CLI_EXPERIMENTAL=enabled
3- docker buildx build --platform $1 --push -t $2 :$3 -f $4 .
3+ DOCKER_BUILDX_TAG_OPTS=
4+ for TAG in $( echo " $3 " | tr ' ,' ' ' )
5+ do
6+ DOCKER_BUILDX_TAG_OPTS=" $DOCKER_BUILDX_TAG_OPTS --tag $2 :$TAG "
7+ done
8+ docker buildx build --platform $1 --push $DOCKER_BUILDX_TAG_OPTS -f $4 .
You can’t perform that action at this time.
0 commit comments