diff options
| author | Roberto Berto <roberto.berto@under.com.br> | 2024-06-08 17:21:57 -0300 |
|---|---|---|
| committer | Roberto Berto <roberto.berto@under.com.br> | 2024-06-08 17:21:57 -0300 |
| commit | 94bc8a86dcb70a5c0ee29cdab91a9ad0f739be9d (patch) | |
| tree | ca18c6ee97ed788951380022b0ea80d9a1092447 /scripts | |
| parent | bc094b8954b79d35fba6bf97814f4a18ebd7274e (diff) | |
| download | vyos-apt-94bc8a86dcb70a5c0ee29cdab91a9ad0f739be9d.tar.gz vyos-apt-94bc8a86dcb70a5c0ee29cdab91a9ad0f739be9d.zip | |
build .deb packages using docker
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/build_packages.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/build_packages.sh b/scripts/build_packages.sh index 3141a32..915957f 100644 --- a/scripts/build_packages.sh +++ b/scripts/build_packages.sh @@ -2,22 +2,27 @@ set -e -# packages to build -packages=("keepalived" "ethtool") +# Load environment variables from .env file +source .env +# Define the working directory WORKDIR=$(pwd) +# Clone the VyOS repository git clone https://github.com/vyos/vyos-build.git cd vyos-build/packages +# Convert the comma-separated package list into an array +IFS=',' read -r -a packages <<< "$PACKAGE_LIST" -# build each package +# Build each package for pkg in "${packages[@]}"; do cd "$pkg" + # Build the package using debuild debuild -b -us -uc cd .. done -# copy the packages to the output directory +# Copy built packages to the output directory mkdir -p "$WORKDIR/output" cp ../*.deb "$WORKDIR/output" |
