28 lines
No EOL
717 B
YAML
28 lines
No EOL
717 B
YAML
# Is performed before the scripts in the stages step
|
|
|
|
before_script:
|
|
- source /etc/profile
|
|
|
|
# Defines stages which are to be executed
|
|
stages:
|
|
- build
|
|
|
|
# Stage "build"
|
|
build-package:
|
|
stage: build
|
|
script:
|
|
- pwd
|
|
- mkdir -p ./builds/artifact
|
|
- sudo apt update
|
|
- sudo apt install -y build-essential devscripts dh-make
|
|
- dpkg-buildpackage -us -uc
|
|
- mv ../*.{deb,tar.xz,dsc,changes} ./builds/artifact
|
|
only:
|
|
- tags
|
|
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"' |