File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ Options:
86
86
Additional version information like for base images.
87
87
--release-tag
88
88
Use this as main tag.
89
+ --additional-tag
90
+ Add additional tags that will be published
89
91
--version-from <VERSION>
90
92
Use this to set build_from tag if not specified.
91
93
Architecture
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ VERSION_BASE=
28
28
VERSION_FROM=
29
29
IMAGE=
30
30
RELEASE=
31
+ ADDITIONAL_TAGS=()
31
32
BUILD_LIST=()
32
33
BUILD_TYPE=" addon"
33
34
BUILD_TASKS=()
@@ -81,6 +82,8 @@ Options:
81
82
Additional version information like for base images.
82
83
--release-tag
83
84
Use this as main tag.
85
+ --additional-tag
86
+ Add additional tags that will be published
84
87
--version-from <VERSION>
85
88
Use this to set build_from tag if not specified.
86
89
@@ -292,6 +295,11 @@ function run_build() {
292
295
docker_tags+=(" latest" )
293
296
fi
294
297
298
+ # Add additional tags
299
+ for tag_image in " ${ADDITIONAL_TAGS[@]} " ; do
300
+ docker_tags+=(" ${tag_image} " )
301
+ done
302
+
295
303
# Tag images
296
304
for tag_image in " ${docker_tags[@]} " ; do
297
305
bashio::log.info " Create image tag: ${tag_image} "
@@ -812,6 +820,10 @@ while [[ $# -gt 0 ]]; do
812
820
--test)
813
821
DOCKER_PUSH=false
814
822
;;
823
+ --additional-tag)
824
+ ADDITIONAL_TAGS+=(" $2 " )
825
+ shift
826
+ ;;
815
827
--no-cache)
816
828
DOCKER_CACHE=false
817
829
;;
You can’t perform that action at this time.
0 commit comments