Update .woodpecker.yml #23

Open
trent wants to merge 58 commits from Warehouses into master
Showing only changes of commit 8f859e0cc7 - Show all commits

View File

@@ -150,9 +150,6 @@ steps:
exit 0 exit 0
fi fi
BAGET_IP=$(getent hosts baget | awk '{print $1}')
echo "BaGet IP: $BAGET_IP"
cat projects-to-build.txt | while IFS='|' read -r PDIR PNAME; do cat projects-to-build.txt | while IFS='|' read -r PDIR PNAME; do
PDIR=$(echo "$PDIR" | xargs) PDIR=$(echo "$PDIR" | xargs)
PNAME=$(echo "$PNAME" | xargs) PNAME=$(echo "$PNAME" | xargs)
@@ -186,9 +183,8 @@ steps:
REAL_PDIR=$(cat /tmp/pdir.txt) REAL_PDIR=$(cat /tmp/pdir.txt)
sed "s|%%PROJECTNAME%%|$REAL_PNAME|g; s|%%PROJECTDIR%%|$REAL_PDIR|g" "Dockerfile.temp" > "Dockerfile.final" sed "s|%%PROJECTNAME%%|$REAL_PNAME|g; s|%%PROJECTDIR%%|$REAL_PDIR|g" "Dockerfile.temp" > "Dockerfile.final"
docker buildx build \ docker build \
--add-host=baget:${BAGET_IP} \ --network app-network \
--platform linux/amd64 \
-t "$(cat /tmp/tag.txt):${CI_COMMIT_SHA}" \ -t "$(cat /tmp/tag.txt):${CI_COMMIT_SHA}" \
-t "$(cat /tmp/tag.txt):latest" \ -t "$(cat /tmp/tag.txt):latest" \
-f "Dockerfile.final" \ -f "Dockerfile.final" \