mirror of https://gitlab.com/openlp/runners.git
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
image: docker:stable
|
|
|
|
services:
|
|
- docker:dind
|
|
|
|
variables:
|
|
DOCKER_HOST: tcp://docker:2375
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
before_script:
|
|
- echo "$DOCKER_TOKEN" | docker login --username "$DOCKER_USER" --password-stdin
|
|
|
|
build-debian:
|
|
stage: build
|
|
script:
|
|
- docker pull openlp/debian || true
|
|
- docker build --cache-from openlp/debian --tag openlp/debian:$CI_COMMIT_SHA --tag openlp/debian:latest -f Dockerfile.debian .
|
|
- docker push openlp/debian:$CI_COMMIT_SHA
|
|
- docker push openlp/debian:latest
|
|
only:
|
|
- master@openlp/runners
|
|
|
|
build-ubuntu:
|
|
stage: build
|
|
script:
|
|
- docker pull openlp/ubuntu || true
|
|
- docker build --cache-from openlp/ubuntu --tag openlp/ubuntu:$CI_COMMIT_SHA --tag openlp/ubuntu:latest -f Dockerfile.ubuntu .
|
|
- docker push openlp/ubuntu:$CI_COMMIT_SHA
|
|
- docker push openlp/ubuntu:latest
|
|
only:
|
|
- master@openlp/runners
|
|
|
|
build-fedora:
|
|
stage: build
|
|
script:
|
|
- docker pull openlp/fedora || true
|
|
- docker build --cache-from openlp/fedora --tag openlp/fedora:$CI_COMMIT_SHA --tag openlp/fedora:latest -f Dockerfile.fedora .
|
|
- docker push openlp/fedora:$CI_COMMIT_SHA
|
|
- docker push openlp/fedora:latest
|
|
only:
|
|
- master@openlp/runners
|
|
|
|
build-documentation:
|
|
stage: build
|
|
script:
|
|
- docker pull openlp/documentation || true
|
|
- docker build --cache-from openlp/documentation --tag openlp/documentation:$CI_COMMIT_SHA --tag openlp/documentation:latest -f Dockerfile.documentation .
|
|
- docker push openlp/documentation:$CI_COMMIT_SHA
|
|
- docker push openlp/documentation:latest
|
|
only:
|
|
- master@openlp/runners
|