diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4e497b8 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,27 @@ +# Is performed before the scripts in the stages step +tags: + - selfhosted-1 +before_script: + - source /etc/profile + +# Defines stages which are to be executed +stages: + - build + +# Stage "build" +run-build: + stage: build + script: + - apt install -y build-essential dh-make devscripts + - dpkg-buildpackage -us -uc + - mkdir build + - mv ../* build/ + + # This stage is only executed for new tags + only: + - tags + + # The files which are to be made available in GitLab + artifacts: + paths: + - build/* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3048011 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM debian:bookworm +WORKDIR /app +COPY . /app +RUN apt update + +RUN apt install -y git dh-make build-essential autoconf autotools-dev +RUN apt-get clean autoclean +RUN apt-get autoremove --yes +RUN rm -rf /var/lib/{apt,dpkg,cache,log}/ \ No newline at end of file