This repository has been archived on 2024-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
leitstelle-forgejo-actions/buildandpush.sh

13 lines
410 B
Bash
Raw Normal View History

2024-07-25 17:59:40 +02: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}