The asonix.dog mastodon downstream
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

push-containers.sh 381B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. set -xe
  3. TAG=$1
  4. require_input() {
  5. input=$1
  6. name=$2
  7. if [ "$input" == "" ]; then
  8. echo "Input, $name, required but not present"
  9. exit 1;
  10. fi
  11. }
  12. require_input "$TAG" "container tag"
  13. ARCHITECTURES=('arm64v8' 'arm32v7' 'amd64')
  14. for arch in "${ARCHITECTURES[@]}"; do
  15. podman push "$TAG:$arch" "docker://docker.io/$TAG:$arch"
  16. done