30 lines
587 B
YAML
30 lines
587 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"
|
|
run-build:
|
|
stage: build
|
|
script:
|
|
- pwd
|
|
mkdir /builds/artifact
|
|
- apt update
|
|
- apt install -y build-essential devscripts dh-make
|
|
- dpkg-buildpackage -us -uc
|
|
- mv ../* /builds/artifact
|
|
|
|
tags:
|
|
- ssd-selfhosted
|
|
# This stage is only executed for new tags
|
|
only:
|
|
- tags
|
|
|
|
# The files which are to be made available in GitLab
|
|
artifacts:
|
|
paths:
|
|
- /builds/artifact
|