1
0
mirror of https://gitlab.com/openlp/runners.git synced 2024-12-22 11:22:48 +00:00

Merge branch 'use-gitlab-registry' into 'master'

Change to use the GitLab registry

See merge request openlp/runners!27
This commit is contained in:
Raoul Snyman 2023-05-18 16:35:30 +00:00
commit 2e6ceebf85

View File

@ -4,19 +4,18 @@ services:
- docker:dind - docker:dind
variables: variables:
DOCKER_HOST: tcp://docker:2375 IMAGE_BASE: $CI_REGISTRY/openlp/openlp
DOCKER_DRIVER: overlay2
before_script: before_script:
- echo "$DOCKER_TOKEN" | docker login --username "$DOCKER_USER" --password-stdin - echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
build-debian: build-debian:
stage: build stage: build
script: script:
- docker pull openlp/debian || true - docker pull $IMAGE_BASE/debian || true
- docker build --cache-from openlp/debian --tag openlp/debian:$CI_COMMIT_SHA --tag openlp/debian:latest -f Dockerfile.debian . - docker build --cache-from openlp/debian --tag $IMAGE_BASE/debian:$CI_COMMIT_SHA --tag $IMAGE_BASE/debian:latest -f Dockerfile.debian .
- docker push openlp/debian:$CI_COMMIT_SHA - docker push $IMAGE_BASE/debian:$CI_COMMIT_SHA
- docker push openlp/debian:latest - docker push $IMAGE_BASE/debian:latest
only: only:
refs: refs:
- master@openlp/runners - master@openlp/runners
@ -27,10 +26,10 @@ build-debian:
build-ubuntu: build-ubuntu:
stage: build stage: build
script: script:
- docker pull openlp/ubuntu || true - docker pull $IMAGE_BASE/ubuntu || true
- docker build --cache-from openlp/ubuntu --tag openlp/ubuntu:$CI_COMMIT_SHA --tag openlp/ubuntu:latest -f Dockerfile.ubuntu . - docker build --cache-from openlp/ubuntu --tag $IMAGE_BASE/ubuntu:$CI_COMMIT_SHA --tag $IMAGE_BASE/ubuntu:latest -f Dockerfile.ubuntu .
- docker push openlp/ubuntu:$CI_COMMIT_SHA - docker push $IMAGE_BASE/ubuntu:$CI_COMMIT_SHA
- docker push openlp/ubuntu:latest - docker push $IMAGE_BASE/ubuntu:latest
only: only:
refs: refs:
- master@openlp/runners - master@openlp/runners
@ -40,10 +39,10 @@ build-ubuntu:
build-fedora: build-fedora:
stage: build stage: build
script: script:
- docker pull openlp/fedora || true - docker pull $IMAGE_BASE/fedora || true
- docker build --cache-from openlp/fedora --tag openlp/fedora:$CI_COMMIT_SHA --tag openlp/fedora:latest -f Dockerfile.fedora . - docker build --cache-from openlp/fedora --tag $IMAGE_BASE/fedora:$CI_COMMIT_SHA --tag $IMAGE_BASE/fedora:latest -f Dockerfile.fedora .
- docker push openlp/fedora:$CI_COMMIT_SHA - docker push $IMAGE_BASE/fedora:$CI_COMMIT_SHA
- docker push openlp/fedora:latest - docker push $IMAGE_BASE/fedora:latest
only: only:
refs: refs:
- master@openlp/runners - master@openlp/runners
@ -53,10 +52,10 @@ build-fedora:
build-arch: build-arch:
stage: build stage: build
script: script:
- docker pull openlp/arch || true - docker pull $IMAGE_BASE/arch || true
- docker build --cache-from openlp/arch --tag openlp/arch:$CI_COMMIT_SHA --tag openlp/arch:latest -f Dockerfile.arch . - docker build --cache-from openlp/arch --tag $IMAGE_BASE/arch:$CI_COMMIT_SHA --tag $IMAGE_BASE/arch:latest -f Dockerfile.arch .
- docker push openlp/arch:$CI_COMMIT_SHA - docker push $IMAGE_BASE/arch:$CI_COMMIT_SHA
- docker push openlp/arch:latest - docker push $IMAGE_BASE/arch:latest
only: only:
refs: refs:
- master@openlp/runners - master@openlp/runners
@ -66,10 +65,10 @@ build-arch:
build-angular: build-angular:
stage: build stage: build
script: script:
- docker pull openlp/angular || true - docker pull $IMAGE_BASE/angular || true
- docker build --cache-from openlp/angular --tag openlp/angular:$CI_COMMIT_SHA --tag openlp/angular:latest -f Dockerfile.angular . - docker build --cache-from openlp/angular --tag $IMAGE_BASE/angular:$CI_COMMIT_SHA --tag $IMAGE_BASE/angular:latest -f Dockerfile.angular .
- docker push openlp/angular:$CI_COMMIT_SHA - docker push $IMAGE_BASE/angular:$CI_COMMIT_SHA
- docker push openlp/angular:latest - docker push $IMAGE_BASE/angular:latest
only: only:
refs: refs:
- master@openlp/runners - master@openlp/runners
@ -79,10 +78,10 @@ build-angular:
build-documentation: build-documentation:
stage: build stage: build
script: script:
- docker pull openlp/documentation || true - docker pull $IMAGE_BASE/documentation || true
- docker build --cache-from openlp/documentation --tag openlp/documentation:$CI_COMMIT_SHA --tag openlp/documentation:latest -f Dockerfile.documentation . - docker build --cache-from openlp/documentation --tag $IMAGE_BASE/documentation:$CI_COMMIT_SHA --tag $IMAGE_BASE/documentation:latest -f Dockerfile.documentation .
- docker push openlp/documentation:$CI_COMMIT_SHA - docker push $IMAGE_BASE/documentation:$CI_COMMIT_SHA
- docker push openlp/documentation:latest - docker push $IMAGE_BASE/documentation:latest
only: only:
refs: refs:
- master@openlp/runners - master@openlp/runners