Commit f411a1ae authored by Olav Morken's avatar Olav Morken
Browse files

Copy generated package files in build.sh

Instead of repeating the commands to copy the Debian package files in
each build job, we can add the copy to `build.sh`.

This also makes it easier to run the build locally, and will make it
simpler to build the packages from a temporary working directory.
parent ce032e48
......@@ -11,8 +11,6 @@ build-debian-bullseye:
- output
script:
- ./build.sh
- mkdir output/bullseye
- cp -v *.deb output/bullseye/
build-debian-buster:
stage: build
......@@ -23,8 +21,6 @@ build-debian-buster:
- output
script:
- ./build.sh
- mkdir output/buster
- cp -v *.deb output/buster/
deploy-apt:
stage: deploy
......
......@@ -9,5 +9,5 @@ Edit **build.sh** and set the desired version number for Radsecproxy.
To build the packages locally, run:
```
docker run --rm -ti -v "$(pwd -P):/work" debian:bullseye /bin/sh -c 'cd /work && ./build.sh && mkdir -p output && cp *.deb output/'
docker run --rm -ti -v "$(pwd -P):/work" debian:bullseye /bin/sh -c 'cd /work && ./build.sh'
```
......@@ -70,3 +70,8 @@ cat changelog > "${package}-${version}/debian/changelog"
cd "${package}-${version}/"
dpkg-buildpackage
cd "${here}"
# Copy the generated Debian packages to the output directory.
output_dir="./output/${lsb_release_name}"
mkdir -p "${output_dir}"
cp -pv ./*.deb "${output_dir}/"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment