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 - build
# Stage "build" # Stage "build"
run-build: build-package:
stage: build stage: build
script: script:
- pwd - pwd
@ -17,12 +17,12 @@ run-build:
- sudo apt install -y build-essential devscripts dh-make - sudo apt install -y build-essential devscripts dh-make
- dpkg-buildpackage -us -uc - dpkg-buildpackage -us -uc
- mv ../*.{deb,tar.xz,dsc,changes} ./builds/artifact - mv ../*.{deb,tar.xz,dsc,changes} ./builds/artifact
only:
# This stage is only executed for new tags
only:
- tags - tags
# The files which are to be made available in GitLab
artifacts: artifacts:
paths: paths:
- ./builds/artifact - ./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"'