system-config/containers/push-all.sh

8 lines
310 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")"
for container in */; do
container=${container%/}
id=$(podman build --pull=always --ulimit nofile=-1:-1 -q "$container")
echo | podman push --compress --sign-by-sigstore-private-key ~/Documents/cosign.key "$id" git.strypsteen.com/infra/"$container"
done