mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-28 10:57:36 +00:00
* remove individual hulykvs build job from workflows/main.yml * pods_external build/push support * no-op format command --------- Signed-off-by: Alexey Aristov <aav@acm.org>
18 lines
497 B
Bash
18 lines
497 B
Bash
set -e
|
|
|
|
registry=hardcoreeng
|
|
tag=$(git describe --tags --abbrev=0)
|
|
|
|
find services.d/ -type f -name "*.service" ! -name "-*" | sort | while read -r file; do
|
|
extern=$(cat $file | grep -v -e '^[[:space:]]*$' -e '^#' | head -n 1 | tr -d '[:space:]')
|
|
|
|
if [ ! -z $extern ]; then
|
|
repo=$(echo $extern | cut -d'/' -f2 | cut -d':' -f1)
|
|
local=$registry/$repo:$tag
|
|
docker buildx imagetools create --tag $local $extern
|
|
|
|
echo "Copy: $extern -> $local"
|
|
fi
|
|
done
|
|
|
|
exit 0 |