|
|
|
@@ -3,9 +3,9 @@ stages:
|
|
|
|
- build
|
|
|
|
- build
|
|
|
|
- publish
|
|
|
|
- publish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variables:
|
|
|
|
variables:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
|
|
|
|
VERSION: 0.4
|
|
|
|
|
|
|
|
|
|
|
|
build-bookworm:
|
|
|
|
build-bookworm:
|
|
|
|
stage: build
|
|
|
|
stage: build
|
|
|
|
@@ -15,7 +15,7 @@ build-bookworm:
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- bookworm
|
|
|
|
- bookworm
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- tar -czf ../pcapmirror_0.3.orig.tar.gz --exclude=debian .
|
|
|
|
- tar -czf ../pcapmirror_$VERSION.orig.tar.gz --exclude=debian .
|
|
|
|
- apt-get update && apt-get install -y libpcap-dev
|
|
|
|
- apt-get update && apt-get install -y libpcap-dev
|
|
|
|
- dpkg-buildpackage -uc -us
|
|
|
|
- dpkg-buildpackage -uc -us
|
|
|
|
- mkdir -p build
|
|
|
|
- mkdir -p build
|
|
|
|
@@ -38,8 +38,7 @@ publish-bookworm:
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
- ls -la build
|
|
|
|
- ls -la build
|
|
|
|
- 'echo "Uploading to: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_0.3-1_amd64.deb"'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_$VERSION-1_amd64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_$VERSION-1_amd64.deb'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_0.3-1_amd64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_0.3-1_amd64.deb'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build-sid:
|
|
|
|
build-sid:
|
|
|
|
stage: build
|
|
|
|
stage: build
|
|
|
|
@@ -49,7 +48,7 @@ build-sid:
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- sid
|
|
|
|
- sid
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- tar -czf ../pcapmirror_0.3.orig.tar.gz --exclude=debian .
|
|
|
|
- tar -czf ../pcapmirror_$VERSION.orig.tar.gz --exclude=debian .
|
|
|
|
- apt-get update && apt-get install -y libpcap-dev
|
|
|
|
- apt-get update && apt-get install -y libpcap-dev
|
|
|
|
- dpkg-buildpackage -uc -us
|
|
|
|
- dpkg-buildpackage -uc -us
|
|
|
|
- mkdir -p build
|
|
|
|
- mkdir -p build
|
|
|
|
@@ -72,8 +71,7 @@ publish-sid:
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
- ls -la build
|
|
|
|
- ls -la build
|
|
|
|
- 'echo "Uploading to: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/sid/pcapmirror_0.3-1_amd64.deb"'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_$VERSION-1_amd64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/sid/pcapmirror_$VERSION-1_amd64.deb'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_0.3-1_amd64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/sid/pcapmirror_0.3-1_amd64.deb'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build-rocky9:
|
|
|
|
build-rocky9:
|
|
|
|
stage: build
|
|
|
|
stage: build
|
|
|
|
@@ -85,7 +83,7 @@ build-rocky9:
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- dnf install -y libpcap-devel
|
|
|
|
- dnf install -y libpcap-devel
|
|
|
|
- mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
|
|
|
- mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
|
|
|
- tar -czf /root/rpmbuild/SOURCES/pcapmirror-v0.3.tar.gz --exclude=debian --exclude=.git .
|
|
|
|
- tar -czf /root/rpmbuild/SOURCES/pcapmirror-v$VERSION.tar.gz --exclude=debian --exclude=.git .
|
|
|
|
- cp -r * /root/rpmbuild/BUILD
|
|
|
|
- cp -r * /root/rpmbuild/BUILD
|
|
|
|
- rpmbuild -ba pcapmirror.spec
|
|
|
|
- rpmbuild -ba pcapmirror.spec
|
|
|
|
- mkdir -p build
|
|
|
|
- mkdir -p build
|
|
|
|
@@ -109,8 +107,7 @@ publish-rocky9:
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
- ls -la build
|
|
|
|
- ls -la build
|
|
|
|
- 'echo "Uploading to: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux9/pcapmirror-0.3-1.el8.x86_64.rpm"'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror-$VERSION-*.el9.x86_64.rpm ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux9/pcapmirror-$VERSION-1.el8.x86_64.rpm'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror-0.3-*.el9.x86_64.rpm ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux9/pcapmirror-0.3-1.el8.x86_64.rpm'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build-rocky8:
|
|
|
|
build-rocky8:
|
|
|
|
stage: build
|
|
|
|
stage: build
|
|
|
|
@@ -122,7 +119,7 @@ build-rocky8:
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- dnf install -y libpcap-devel
|
|
|
|
- dnf install -y libpcap-devel
|
|
|
|
- mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
|
|
|
- mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
|
|
|
- tar -czf /root/rpmbuild/SOURCES/pcapmirror-v0.3.tar.gz --exclude=debian --exclude=.git .
|
|
|
|
- tar -czf /root/rpmbuild/SOURCES/pcapmirror-v$VERSION.tar.gz --exclude=debian --exclude=.git .
|
|
|
|
- cp -r * /root/rpmbuild/BUILD
|
|
|
|
- cp -r * /root/rpmbuild/BUILD
|
|
|
|
- rpmbuild -ba pcapmirror.spec
|
|
|
|
- rpmbuild -ba pcapmirror.spec
|
|
|
|
- mkdir -p build
|
|
|
|
- mkdir -p build
|
|
|
|
@@ -146,8 +143,7 @@ publish-rocky8:
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
- ls -la build
|
|
|
|
- ls -la build
|
|
|
|
- 'echo "Uploading to: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux8/pcapmirror-0.3-1.el8.x86_64.rpm"'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror-$VERSION-*.el8.x86_64.rpm ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux8/pcapmirror-$VERSION-1.el8.x86_64.rpm'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror-0.3-*.el8.x86_64.rpm ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux8/pcapmirror-0.3-1.el8.x86_64.rpm'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build-pios12:
|
|
|
|
build-pios12:
|
|
|
|
stage: build
|
|
|
|
stage: build
|
|
|
|
@@ -157,14 +153,11 @@ build-pios12:
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- pios12
|
|
|
|
- pios12
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- dnf install -y libpcap-devel
|
|
|
|
- tar -czf ../pcapmirror_$VERSION.orig.tar.gz --exclude=debian .
|
|
|
|
- mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
|
|
|
- apt-get update && apt-get install -y libpcap-dev
|
|
|
|
- tar -czf /root/rpmbuild/SOURCES/pcapmirror-v0.3.tar.gz --exclude=debian --exclude=.git .
|
|
|
|
- dpkg-buildpackage -uc -us
|
|
|
|
- cp -r * /root/rpmbuild/BUILD
|
|
|
|
|
|
|
|
- rpmbuild -ba pcapmirror.spec
|
|
|
|
|
|
|
|
- mkdir -p build
|
|
|
|
- mkdir -p build
|
|
|
|
- mv /root/rpmbuild/RPMS/x86_64/pcapmirror*.* build/
|
|
|
|
- mv ../pcapmirror*.* build/
|
|
|
|
- mv /root/rpmbuild/SRPMS/pcapmirror*.* build/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
@@ -183,5 +176,37 @@ publish-pios12:
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
- ls -la build
|
|
|
|
- ls -la build
|
|
|
|
- 'echo "Uploading to: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_0.3-1_arm64.deb"'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_$VERSION-1_armhf.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_$VERSION-1_armhf.deb'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_0.3-1_arm64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_0.3-1_arm64.deb'
|
|
|
|
|
|
|
|
|
|
|
|
build-pios12-64:
|
|
|
|
|
|
|
|
stage: build
|
|
|
|
|
|
|
|
needs: []
|
|
|
|
|
|
|
|
only:
|
|
|
|
|
|
|
|
- tags
|
|
|
|
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- pios12-64
|
|
|
|
|
|
|
|
script:
|
|
|
|
|
|
|
|
- tar -czf ../pcapmirror_$VERSION.orig.tar.gz --exclude=debian .
|
|
|
|
|
|
|
|
- apt-get update && apt-get install -y libpcap-dev
|
|
|
|
|
|
|
|
- dpkg-buildpackage -uc -us
|
|
|
|
|
|
|
|
- mkdir -p build
|
|
|
|
|
|
|
|
- mv ../pcapmirror*.* build/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
|
|
|
|
paths:
|
|
|
|
|
|
|
|
- build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
publish-pios12-64:
|
|
|
|
|
|
|
|
stage: publish
|
|
|
|
|
|
|
|
needs:
|
|
|
|
|
|
|
|
- build-pios12-64
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
|
|
|
|
- build-pios12-64
|
|
|
|
|
|
|
|
only:
|
|
|
|
|
|
|
|
- tags
|
|
|
|
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- bookworm
|
|
|
|
|
|
|
|
script:
|
|
|
|
|
|
|
|
- apt-get update && apt-get install -y curl
|
|
|
|
|
|
|
|
- ls -la build
|
|
|
|
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_$VERSION-1_arm64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_$VERSION-1_arm64.deb'
|
|
|
|
|