diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32c6f35..99c97bd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - build + - publish variables: DEBIAN_FRONTEND: noninteractive @@ -20,13 +21,19 @@ build-bookworm: artifacts: paths: - - build/*.deb - - build/*.dsc - - build/*.tar.xz - - build/*.tar.gz - - build/*.changes - - build/*.buildinfo - - build/*.diff.gz + - build + +publish-bookworm: + stage: publish + dependencies: + - build-bookworm + only: + - tags + tags: + - bookworm + script: + - apt-get update && apt-get install -y curl + - '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/${PACKAGENAME}/bookworm/pcapmirror_0.3-1_amd64.deb' build-sid: stage: build @@ -43,13 +50,19 @@ build-sid: artifacts: paths: - - build/*.deb - - build/*.dsc - - build/*.tar.xz - - build/*.tar.gz - - build/*.changes - - build/*.buildinfo - - build/*.diff.gz + - build + +publish-sid: + stage: publish + dependencies: + - build-sid + only: + - tags + tags: + - bookworm + script: + - apt-get update && apt-get install -y curl + - '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/${PACKAGENAME}/sid/pcapmirror_0.3-1_amd64.deb' build-rocky9: stage: build @@ -69,7 +82,19 @@ build-rocky9: artifacts: paths: - - build/* + - build + +publish-rocky9: + stage: publish + dependencies: + - build-rocky9 + only: + - tags + tags: + - bookworm + script: + - apt-get update && apt-get install -y curl + - '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/${PACKAGENAME}/rockylinux9/pcapmirror-0.3-1.el8.x86_64.rpm' build-rocky8: stage: build @@ -89,4 +114,17 @@ build-rocky8: artifacts: paths: - - build/* + - build + +publish-rocky8: + stage: publish + dependencies: + - build-rocky8 + only: + - tags + tags: + - bookworm + script: + - apt-get update && apt-get install -y curl + - '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/${PACKAGENAME}/rockylinux8/pcapmirror-0.3-1.el8.x86_64.rpm' + \ No newline at end of file