1
0
mirror of https://github.com/garraflavatra/docker-volume-s3-backup.git synced 2025-06-28 05:35:10 +00:00

build hooks | use common versions array

This commit is contained in:
Elliott Shugerman
2021-06-20 13:15:36 -04:00
parent 147fd4ecaa
commit 95d11a8e6c
3 changed files with 14 additions and 14 deletions

View File

@ -1,17 +1,12 @@
#!/bin/bash
set -eux
declare -A arr
arr[9]=3.6
arr[10]=3.8
arr[11]=3.10
arr[12]=3.11
source ./hooks/versions.sh
for i in "${!arr[@]}"; do
for pg_version in ${!VERSIONS[@]}; do
docker build \
--build-arg "ALPINE_VERSION=${arr[$i]}" \
--tag "postgres-backup-s3:$i" \
--build-arg "ALPINE_VERSION=${VERSIONS[$pg_version]}" \
--tag "postgres-backup-s3:$pg_version" \
.
done