github.com/mvdan/u-root-coreutils@v0.0.0-20230122170626-c2eef2898555/.circleci/images/builduploadall.sh (about)

     1  #!/bin/bash
     2  set -ex
     3  
     4  VERSION=v4.4.0
     5  
     6  VC=$(git diff --exit-code builduploadall.sh | grep --no-ignore-case -P "VERSION=+" | wc -l)
     7  echo $vc
     8  if [[ $VC != "3" ]]; then
     9      echo "Increment version before a push"
    10      exit 1
    11  fi
    12  
    13  for GOARCH in amd64 arm arm64; do
    14    (
    15      cd test-image-$GOARCH
    16      docker build . -t uroottest/test-image-$GOARCH:$VERSION
    17      docker push uroottest/test-image-$GOARCH:$VERSION
    18    )
    19  done
    20  
    21  # Tamago has slightly different requirements; until we are sure why,
    22  # do a slightly custom build
    23  
    24  (
    25  	cd test-image-tamago
    26  	docker build . --build-arg UID=1000 --build-arg GID=1000 -t uroottest/test-image-tamago:$VERSION
    27  	docker push uroottest/test-image-tamago:$VERSION
    28  )