build: make podman_build a function (#121)

This commit is contained in:
Unai Martinez-Corral
2023-05-24 16:20:18 +02:00
committed by GitHub
parent 51dcd8bc6b
commit 5f596e34f2
3 changed files with 52 additions and 38 deletions

View File

@@ -1,11 +1,6 @@
#!/bin/bash
set -e
podman=podman
if ! which $podman; then
podman=docker
fi
source $(dirname "$0")/setup.sh
img_version=$1
registry=$2
@@ -19,13 +14,13 @@ if [ -z "${registry}" ]; then
registry=registry.prehensile-tales.com
fi
$podman push godot-export:${img_version} ${registry}/godot/export
$podman push godot-linux:${img_version} ${registry}/godot/linux
$podman push godot-windows:${img_version} ${registry}/godot/windows
$podman push godot-web:${img_version} ${registry}/godot/web
$podman push godot-xcode-packer:${img_version} ${registry}/godot/xcode-packer
"$podman" push godot-export:${img_version} ${registry}/godot/export
"$podman" push godot-linux:${img_version} ${registry}/godot/linux
"$podman" push godot-windows:${img_version} ${registry}/godot/windows
"$podman" push godot-web:${img_version} ${registry}/godot/web
"$podman" push godot-xcode:${img_version} ${registry}/godot/xcode
$podman push godot-android:${img_version} ${registry}/godot-private/android
$podman push godot-ios:${img_version} ${registry}/godot-private/ios
$podman push godot-osx:${img_version} ${registry}/godot-private/macosx
$podman push godot-msvc:${img_version} ${registry}/godot-private/uwp
"$podman" push godot-android:${img_version} ${registry}/godot-private/android
"$podman" push godot-ios:${img_version} ${registry}/godot-private/ios
"$podman" push godot-osx:${img_version} ${registry}/godot-private/macosx
"$podman" push godot-msvc:${img_version} ${registry}/godot-private/uwp