Update .woodpecker.yml #23
@@ -150,9 +150,6 @@ steps:
|
||||
exit 0
|
||||
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
|
||||
PDIR=$(echo "$PDIR" | xargs)
|
||||
PNAME=$(echo "$PNAME" | xargs)
|
||||
@@ -186,9 +183,8 @@ steps:
|
||||
REAL_PDIR=$(cat /tmp/pdir.txt)
|
||||
sed "s|%%PROJECTNAME%%|$REAL_PNAME|g; s|%%PROJECTDIR%%|$REAL_PDIR|g" "Dockerfile.temp" > "Dockerfile.final"
|
||||
|
||||
docker buildx build \
|
||||
--add-host=baget:${BAGET_IP} \
|
||||
--platform linux/amd64 \
|
||||
docker build \
|
||||
--network app-network \
|
||||
-t "$(cat /tmp/tag.txt):${CI_COMMIT_SHA}" \
|
||||
-t "$(cat /tmp/tag.txt):latest" \
|
||||
-f "Dockerfile.final" \
|
||||
|
||||
Reference in New Issue
Block a user