Download test

This commit is contained in:
Ivan Fonarev 2023-10-27 23:49:02 +03:00
parent 563b86a3a1
commit 9598d4dbfe

View file

@ -8,7 +8,7 @@ stages:
- build
# Stage "build"
run-build:
build-package:
stage: build
script:
- pwd
@ -17,12 +17,12 @@ run-build:
- sudo apt install -y build-essential devscripts dh-make
- dpkg-buildpackage -us -uc
- mv ../*.{deb,tar.xz,dsc,changes} ./builds/artifact
# This stage is only executed for new tags
only:
- tags
# The files which are to be made available in GitLab
artifacts:
paths:
- ./builds/artifact
artifact_download:
stage: test
script:
- 'curl --location --output artifacts.zip --header "JOB-TOKEN: $CI_JOB_TOKEN" "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/main/download?job=build-package"'