Docker runner updates

- Add Angular runner image
- Add Arch runner image
- Only rebuild Docker images if the appropriate Dockerfile changes
This commit is contained in:
Raoul Snyman 2019-10-06 00:26:28 +00:00
parent 140e2ab1a4
commit 657f0b7b86
3 changed files with 56 additions and 4 deletions

View File

@ -18,7 +18,11 @@ build-debian:
- docker push openlp/debian:$CI_COMMIT_SHA
- docker push openlp/debian:latest
only:
- master@openlp/runners
refs:
- master@openlp/runners
changes:
- Dockerfile.debian
build-ubuntu:
stage: build
@ -28,7 +32,10 @@ build-ubuntu:
- docker push openlp/ubuntu:$CI_COMMIT_SHA
- docker push openlp/ubuntu:latest
only:
- master@openlp/runners
refs:
- master@openlp/runners
changes:
- Dockerfile.ubuntu
build-fedora:
stage: build
@ -38,7 +45,36 @@ build-fedora:
- docker push openlp/fedora:$CI_COMMIT_SHA
- docker push openlp/fedora:latest
only:
- master@openlp/runners
refs:
- master@openlp/runners
changes:
- Dockerfile.fedora
build-arch:
stage: build
script:
- docker pull openlp/arch || true
- docker build --cache-from openlp/arch --tag openlp/arch:$CI_COMMIT_SHA --tag openlp/arch:latest -f Dockerfile.arch .
- docker push openlp/arch:$CI_COMMIT_SHA
- docker push openlp/arch:latest
only:
refs:
- master@openlp/runners
changes:
- Dockerfile.arch
build-angular:
stage: build
script:
- docker pull openlp/angular || true
- docker build --cache-from openlp/angular --tag openlp/angular:$CI_COMMIT_SHA --tag openlp/angular:latest -f Dockerfile.angular .
- docker push openlp/angular:$CI_COMMIT_SHA
- docker push openlp/angular:latest
only:
refs:
- master@openlp/runners
changes:
- Dockerfile.angular
build-documentation:
stage: build
@ -48,4 +84,7 @@ build-documentation:
- docker push openlp/documentation:$CI_COMMIT_SHA
- docker push openlp/documentation:latest
only:
- master@openlp/runners
refs:
- master@openlp/runners
changes:
- Dockerfile.documentation

3
Dockerfile.angular Normal file
View File

@ -0,0 +1,3 @@
FROM alpine:latest
RUN apk add yarn chromium xvfb-run

10
Dockerfile.arch Normal file
View File

@ -0,0 +1,10 @@
FROM archlinux/base
ENV LANG C.UTF-8
RUN pacman -Syyu --noconfirm git python qt5-multimedia qt5-svg qt5-webengine qt5-webchannel qt5-tools python-pyqt5 \
python-dbus python-sqlalchemy python-alembic python-chardet python-lxml python-pyenchant \
python-beautifulsoup4 python-mako python-pytest python-pytest-cov python-websockets \
python-webob python-waitress python-requests python-pymediainfo python-qtawesome \
python-opengl python-appdirs python-zeroconf python-pip flake8 mediainfo mupdf-tools \
xorg-server-xvfb pyalpm fakeroot patch awk
RUN pip install python-vlc pysword