Files
docker-postgres-backup-local/publish.sh
T
Pau Rodriguez-Estivill 0a9404a08e Add build documentation
2020-08-20 21:49:36 +02:00

22 lines
494 B
Bash
Executable File

#!/bin/sh
#
# Usage: ./publish.sh [Version1] [Version2]...
set -e
cd "$(dirname "$0")"
TMPFILE=$(mktemp)
trap 'rm -vf "$TMPFILE"' EXIT
if [ -n "$@" ]; then
export TAGS="$@"
echo "Generate configuration for only this tags: $TAGS"
else
echo "Generate configuration for all predefined tags."
fi
./generate.sh "$TMPFILE"
echo "Generated docker bake HCL script at: $TMPFILE"
echo "Starting building and publish..."
docker buildx bake --pull --set common.output=type=registry -f "$TMPFILE"