mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-07-05 09:48:07 +00:00
Add build documentation
This commit is contained in:
+15
-2
@@ -1,8 +1,21 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Usage: ./publish.sh [Version1] [Version2]...
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
./generate.sh
|
||||
TMPFILE=$(mktemp)
|
||||
trap 'rm -vf "$TMPFILE"' EXIT
|
||||
|
||||
docker buildx bake --pull --set common.output=type=registry
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user