@@ -368,7 +368,6 @@ function build_base() {
368
368
local repository=
369
369
local shadow_repository=
370
370
local raw_image=
371
- local version_tag=false
372
371
local args=
373
372
local codenotary_base=
374
373
local codenotary_sign=
@@ -381,7 +380,6 @@ function build_base() {
381
380
args=" $( jq --raw-output ' .args // empty | keys[]' " /tmp/build_config/build.json" ) "
382
381
labels=" $( jq --raw-output ' .labels // empty | keys[]' " /tmp/build_config/build.json" ) "
383
382
raw_image=" $( jq --raw-output ' .image // empty' " /tmp/build_config/build.json" ) "
384
- version_tag=" $( jq --raw-output ' .version_tag // false' " /tmp/build_config/build.json" ) "
385
383
shadow_repository=" $( jq --raw-output ' .shadow_repository // empty' " /tmp/build_config/build.json" ) "
386
384
codenotary_base=" $( jq --raw-output ' .codenotary.base_image // empty' " /tmp/build_config/build.json" ) "
387
385
codenotary_sign=" $( jq --raw-output ' .codenotary.signer // empty' " /tmp/build_config/build.json" ) "
@@ -535,7 +533,6 @@ function build_generic() {
535
533
local repository=
536
534
local shadow_repository=
537
535
local raw_image=
538
- local version_tag=false
539
536
local args=
540
537
local codenotary_base=
541
538
local codenotary_sign=
@@ -548,7 +545,6 @@ function build_generic() {
548
545
args=" $( jq --raw-output ' .args // empty | keys[]' " /tmp/build_config/build.json" ) "
549
546
labels=" $( jq --raw-output ' .labels // empty | keys[]' " /tmp/build_config/build.json" ) "
550
547
raw_image=" $( jq --raw-output ' .image // empty' " /tmp/build_config/build.json" ) "
551
- version_tag=" $( jq --raw-output ' .version_tag // false' " /tmp/build_config/build.json" ) "
552
548
shadow_repository=" $( jq --raw-output ' .shadow_repository // empty' " /tmp/build_config/build.json" ) "
553
549
codenotary_base=" $( jq --raw-output ' .codenotary.base_image // empty' " /tmp/build_config/build.json" ) "
554
550
codenotary_sign=" $( jq --raw-output ' .codenotary.signer // empty' " /tmp/build_config/build.json" ) "
@@ -584,17 +580,6 @@ function build_generic() {
584
580
done
585
581
fi
586
582
587
- # Version Tag
588
- if bashio::var.true " $version_tag " ; then
589
- if [[ " $VERSION " =~ d ]]; then
590
- docker_tags+=(" dev" )
591
- elif [[ " $VERSION " =~ b ]]; then
592
- docker_tags+=(" beta" )
593
- else
594
- docker_tags+=(" stable" )
595
- fi
596
- fi
597
-
598
583
# Start build
599
584
run_build " $TARGET " " $repository " " $image " " $VERSION " \
600
585
" $build_from " " $build_arch " docker_cli[@] docker_tags[@] " ${shadow_repository} " \
@@ -612,7 +597,6 @@ function build_machine() {
612
597
local raw_image=
613
598
local build_from=
614
599
local shadow_repository=
615
- local version_tag=false
616
600
local codenotary_base=
617
601
local codenotary_sign=
618
602
local docker_cli=()
@@ -624,7 +608,6 @@ function build_machine() {
624
608
args=" $( jq --raw-output ' .args // empty | keys[]' " /tmp/build_config/build.json" ) "
625
609
labels=" $( jq --raw-output ' .labels // empty | keys[]' " /tmp/build_config/build.json" ) "
626
610
raw_image=" $( jq --raw-output ' .image // empty' " /tmp/build_config/build.json" ) "
627
- version_tag=" $( jq --raw-output ' .version_tag // false' " /tmp/build_config/build.json" ) "
628
611
shadow_repository=" $( jq --raw-output ' .shadow_repository // empty' " /tmp/build_config/build.json" ) "
629
612
codenotary_base=" $( jq --raw-output ' .codenotary.base_image // empty' " /tmp/build_config/build.json" ) "
630
613
codenotary_sign=" $( jq --raw-output ' .codenotary.signer // empty' " /tmp/build_config/build.json" ) "
@@ -667,17 +650,6 @@ function build_machine() {
667
650
# Set labels
668
651
docker_cli+=(" --label" " io.hass.machine=${build_machine} " )
669
652
670
- # Version Tag
671
- if bashio::var.true " ${version_tag} " ; then
672
- if [[ " ${VERSION} " =~ d ]]; then
673
- docker_tags+=(" dev" )
674
- elif [[ " ${VERSION} " =~ b ]]; then
675
- docker_tags+=(" beta" )
676
- else
677
- docker_tags+=(" stable" )
678
- fi
679
- fi
680
-
681
653
# Start build
682
654
run_build " ${TARGET} " " ${repository} " " ${image} " " ${VERSION} " \
683
655
" ${build_from} " " ${build_arch} " docker_cli[@] docker_tags[@] " ${shadow_repository} " \
0 commit comments