Skip to content

Commit

Permalink
Add additional-tag argument (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Dec 13, 2021
1 parent efd0039 commit 0e36d60
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ Options:
Additional version information like for base images.
--release-tag
Use this as main tag.
--additional-tag
Add additional tags that will be published
--version-from <VERSION>
Use this to set build_from tag if not specified.
Architecture
Expand Down
12 changes: 12 additions & 0 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ VERSION_BASE=
VERSION_FROM=
IMAGE=
RELEASE=
ADDITIONAL_TAGS=()
BUILD_LIST=()
BUILD_TYPE="addon"
BUILD_TASKS=()
Expand Down Expand Up @@ -81,6 +82,8 @@ Options:
Additional version information like for base images.
--release-tag
Use this as main tag.
--additional-tag
Add additional tags that will be published
--version-from <VERSION>
Use this to set build_from tag if not specified.
Expand Down Expand Up @@ -292,6 +295,11 @@ function run_build() {
docker_tags+=("latest")
fi

# Add additional tags
for tag_image in "${ADDITIONAL_TAGS[@]}"; do
docker_tags+=("${tag_image}")
done

# Tag images
for tag_image in "${docker_tags[@]}"; do
bashio::log.info "Create image tag: ${tag_image}"
Expand Down Expand Up @@ -812,6 +820,10 @@ while [[ $# -gt 0 ]]; do
--test)
DOCKER_PUSH=false
;;
--additional-tag)
ADDITIONAL_TAGS+=("$2")
shift
;;
--no-cache)
DOCKER_CACHE=false
;;
Expand Down

0 comments on commit 0e36d60

Please sign in to comment.