leitstelle-forgejo-actions/buildandpush.sh

13 lines
410 B
Bash
Raw Normal View History

2024-07-25 15:59:40 +00:00
#!/bin/bash
# Variables
REGISTRY="git.hannover.ccc.de/c3h/leitstelle-forgejo-actions/runner"
PLATTARCH="linux/amd64,linux/arm64"
# Build and push the first image
echo "Building and pushing PHP Podman image..."
if ! podman manifest exists ${REGISTRY}; then podman manifest create ${REGISTRY}; fi
podman build --platform ${PLATTARCH} --manifest ${REGISTRY} -f Containerfile .
podman manifest push ${REGISTRY}