mirror of
https://gitlab.com/openlp/runners.git
synced 2024-12-22 11:22:48 +00:00
Merge branch 'pypi-runner' into 'master'
Add an image for installing from PyPI via pip See merge request openlp/runners!52
This commit is contained in:
commit
27089bd29c
@ -23,6 +23,16 @@ lint-dockerfiles:
|
||||
rules:
|
||||
- when: always
|
||||
|
||||
test-pypi:
|
||||
stage: test
|
||||
script:
|
||||
- docker pull $IMAGE_BASE/pypi || true
|
||||
- docker build --cache-from $IMAGE_BASE/pypi --tag $IMAGE_BASE/pypi:$CI_COMMIT_SHA --tag $IMAGE_BASE/pypi:latest -f Dockerfile.pypi .
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH != "master"
|
||||
changes:
|
||||
- Dockerfile.pypi
|
||||
|
||||
test-debian:
|
||||
stage: test
|
||||
script:
|
||||
@ -83,6 +93,18 @@ test-documentation:
|
||||
changes:
|
||||
- Dockerfile.documentation
|
||||
|
||||
build-pypi:
|
||||
stage: build
|
||||
script:
|
||||
- docker pull $IMAGE_BASE/pypi || true
|
||||
- docker build --cache-from $IMAGE_BASE/pypi --tag $IMAGE_BASE/pypi:$CI_COMMIT_SHA --tag $IMAGE_BASE/pypi:latest -f Dockerfile.pypi .
|
||||
- docker push $IMAGE_BASE/pypi:$CI_COMMIT_SHA
|
||||
- docker push $IMAGE_BASE/pypi:latest
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "master"
|
||||
changes:
|
||||
- Dockerfile.pypi
|
||||
|
||||
build-debian:
|
||||
stage: build
|
||||
script:
|
||||
|
5
Dockerfile.pypi
Normal file
5
Dockerfile.pypi
Normal file
@ -0,0 +1,5 @@
|
||||
FROM python:3.12
|
||||
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get install -y python3-dev libdbus-1-dev libegl1 libxkbcommon0 libnss3 libxcomposite1 libxdamage1 libxtst6 \
|
||||
libxi6 libasound2 libpulse0 xvfb
|
Loading…
Reference in New Issue
Block a user