# 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: pull_policy: never stage: build script: - apt install -y build-essential dh-make devscripts - dpkg-buildpackage -us -uc - mkdir build - mv ../* build/ tags: - selfhosted-1 # This stage is only executed for new tags only: - tags # The files which are to be made available in GitLab artifacts: paths: - build/*