env.sh 238 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. set -eu
  3. stage=${1:-'default'}
  4. cat <<EOF
  5. COMPOSE_PROJECT_NAME=registry
  6. EOF
  7. case "$stage" in
  8. "default")
  9. cat <<-EOF
  10. EOF
  11. ;;
  12. "production")
  13. cat <<-EOF
  14. EOF
  15. ;;
  16. *)
  17. echo "Unknown stage $stage" >&2
  18. exit 1
  19. ;;
  20. esac