ci: Use pre-built container image to speed up CI

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati 2020-03-01 15:59:49 +05:30 committed by James Valleroy
parent 05fcfe2d12
commit 001a69e3a2
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 21 additions and 4 deletions

View File

@ -1,12 +1,10 @@
image: debian:testing
# SPDX-License-Identifier: AGPL-3.0-or-later
image: registry.salsa.debian.org/freedombox-team/plinth:gitlabci
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update
- apt-get build-dep -y . # Dependencies of the plinth Debian package
- apt-get install -y build-essential # Build dependencies
- apt-get install -y sshpass parted # Test dependencies
- apt-get install -y sudo
- apt-mark hold fuse fuse3 # not installable in CI environment
- apt-get install -y $(./run --list-dependencies) # Module dependencies

19
Dockerfile.gitlabci Normal file
View File

@ -0,0 +1,19 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
FROM debian:unstable
USER root
COPY . /plinth
WORKDIR /plinth
RUN echo "deb http://deb.debian.org/debian unstable main" > /etc/apt/sources.list
RUN echo "deb-src http://deb.debian.org/debian unstable main" >> /etc/apt/sources.list
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get build-dep -y . # Dependencies of the freedombox Debian package
RUN apt-get install -y build-essential # Build dependencies
RUN apt-get install -y sshpass parted # Test dependencies
RUN apt-get install -y sudo
RUN apt-mark hold fuse fuse3 # not installable in CI environment
RUN apt-get install -y $(./run --list-dependencies) # Module dependencies