mirror of
https://git.freestone.net/cramer/pcapmirror.git
synced 2025-12-31 03:50:27 +01:00
0.4 build test
This commit is contained in:
@@ -3,9 +3,9 @@ stages:
|
||||
- build
|
||||
- publish
|
||||
|
||||
|
||||
variables:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
VERSION: 0.4
|
||||
|
||||
build-bookworm:
|
||||
stage: build
|
||||
@@ -15,7 +15,7 @@ build-bookworm:
|
||||
tags:
|
||||
- bookworm
|
||||
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
|
||||
- dpkg-buildpackage -uc -us
|
||||
- mkdir -p build
|
||||
@@ -38,7 +38,7 @@ publish-bookworm:
|
||||
script:
|
||||
- apt-get update && apt-get install -y curl
|
||||
- ls -la build
|
||||
- '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'
|
||||
- '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'
|
||||
|
||||
build-sid:
|
||||
stage: build
|
||||
@@ -48,7 +48,7 @@ build-sid:
|
||||
tags:
|
||||
- sid
|
||||
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
|
||||
- dpkg-buildpackage -uc -us
|
||||
- mkdir -p build
|
||||
@@ -71,7 +71,7 @@ publish-sid:
|
||||
script:
|
||||
- apt-get update && apt-get install -y curl
|
||||
- ls -la build
|
||||
- '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'
|
||||
- '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'
|
||||
|
||||
build-rocky9:
|
||||
stage: build
|
||||
@@ -83,7 +83,7 @@ build-rocky9:
|
||||
script:
|
||||
- dnf install -y libpcap-devel
|
||||
- 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
|
||||
- rpmbuild -ba pcapmirror.spec
|
||||
- mkdir -p build
|
||||
@@ -107,7 +107,7 @@ publish-rocky9:
|
||||
script:
|
||||
- apt-get update && apt-get install -y curl
|
||||
- ls -la build
|
||||
- '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'
|
||||
- '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'
|
||||
|
||||
build-rocky8:
|
||||
stage: build
|
||||
@@ -119,7 +119,7 @@ build-rocky8:
|
||||
script:
|
||||
- dnf install -y libpcap-devel
|
||||
- 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
|
||||
- rpmbuild -ba pcapmirror.spec
|
||||
- mkdir -p build
|
||||
@@ -143,7 +143,7 @@ publish-rocky8:
|
||||
script:
|
||||
- apt-get update && apt-get install -y curl
|
||||
- ls -la build
|
||||
- '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'
|
||||
- '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'
|
||||
|
||||
build-pios12:
|
||||
stage: build
|
||||
@@ -153,7 +153,7 @@ build-pios12:
|
||||
tags:
|
||||
- pios12
|
||||
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
|
||||
- dpkg-buildpackage -uc -us
|
||||
- mkdir -p build
|
||||
@@ -176,7 +176,7 @@ publish-pios12:
|
||||
script:
|
||||
- apt-get update && apt-get install -y curl
|
||||
- ls -la build
|
||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_0.3-1_armhf.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_0.3-1_armhf.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'
|
||||
|
||||
build-pios12-64:
|
||||
stage: build
|
||||
@@ -186,7 +186,7 @@ build-pios12-64:
|
||||
tags:
|
||||
- pios12-64
|
||||
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
|
||||
- dpkg-buildpackage -uc -us
|
||||
- mkdir -p build
|
||||
@@ -209,4 +209,4 @@ publish-pios12-64:
|
||||
script:
|
||||
- apt-get update && apt-get install -y curl
|
||||
- ls -la build
|
||||
- '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'
|
||||
- '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'
|
||||
|
||||
Reference in New Issue
Block a user