Update .woodpecker.yml #23
@@ -131,23 +131,6 @@ steps:
|
||||
echo "Znaleziono projektow do budowy:"
|
||||
wc -l < projects-to-build.txt
|
||||
depends_on: [publish-datamodels-to-baget]
|
||||
create-nuget-config:
|
||||
image: alpine
|
||||
commands:
|
||||
- |
|
||||
BAGET_IP=$(getent hosts baget | awk '{print $1}')
|
||||
cat > NuGet.Config.docker <<EOF
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<clear />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="BaGet" value="http://baget:80/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
EOF
|
||||
cat NuGet.Config.docker
|
||||
depends_on: [select-projects-for-container]
|
||||
containerize-apps:
|
||||
image: docker:27-cli
|
||||
environment:
|
||||
@@ -167,6 +150,17 @@ steps:
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cat > NuGet.Config.docker <<EOF
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<clear />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="BaGet" value="http://127.0.0.1:8080/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
EOF
|
||||
|
||||
cat projects-to-build.txt | while IFS='|' read -r PDIR PNAME; do
|
||||
PDIR=$(echo "$PDIR" | xargs)
|
||||
PNAME=$(echo "$PNAME" | xargs)
|
||||
@@ -202,6 +196,7 @@ steps:
|
||||
sed "s|%%PROJECTNAME%%|$REAL_PNAME|g; s|%%PROJECTDIR%%|$REAL_PDIR|g" "Dockerfile.temp" > "Dockerfile.final"
|
||||
|
||||
DOCKER_BUILDKIT=0 docker build \
|
||||
--network=host \
|
||||
-t "$(cat /tmp/tag.txt):${CI_COMMIT_SHA}" \
|
||||
-t "$(cat /tmp/tag.txt):latest" \
|
||||
-f "Dockerfile.final" \
|
||||
@@ -212,4 +207,4 @@ steps:
|
||||
|
||||
rm -f "Dockerfile.temp" "Dockerfile.final"
|
||||
done
|
||||
depends_on: [create-nuget-config]
|
||||
depends_on: [select-projects-for-container]
|
||||
|
||||
Reference in New Issue
Block a user