mirror of
https://gitlab.com/openlp/runners.git
synced 2024-12-22 11:22:48 +00:00
Merge branch 'fix-manual-build-step' into 'master'
Switch to use the runners container registry See merge request openlp/runners!30
This commit is contained in:
commit
5a75967b96
@ -4,16 +4,16 @@ services:
|
|||||||
- docker:dind
|
- docker:dind
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
IMAGE_BASE: $CI_REGISTRY/openlp/openlp
|
IMAGE_BASE: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
|
||||||
build-debian:
|
build-debian:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker pull $IMAGE_BASE/debian || true
|
- docker pull $IMAGE_BASE/debian || true
|
||||||
- docker build --cache-from openlp/debian --tag $IMAGE_BASE/debian:$CI_COMMIT_SHA --tag $IMAGE_BASE/debian:latest -f Dockerfile.debian .
|
- docker build --cache-from $IMAGE_BASE/debian --tag $IMAGE_BASE/debian:$CI_COMMIT_SHA --tag $IMAGE_BASE/debian:latest -f Dockerfile.debian .
|
||||||
- docker push $IMAGE_BASE/debian:$CI_COMMIT_SHA
|
- docker push $IMAGE_BASE/debian:$CI_COMMIT_SHA
|
||||||
- docker push $IMAGE_BASE/debian:latest
|
- docker push $IMAGE_BASE/debian:latest
|
||||||
only:
|
only:
|
||||||
@ -27,7 +27,7 @@ build-ubuntu:
|
|||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker pull $IMAGE_BASE/ubuntu || true
|
- docker pull $IMAGE_BASE/ubuntu || true
|
||||||
- docker build --cache-from openlp/ubuntu --tag $IMAGE_BASE/ubuntu:$CI_COMMIT_SHA --tag $IMAGE_BASE/ubuntu:latest -f Dockerfile.ubuntu .
|
- docker build --cache-from $IMAGE_BASE/ubuntu --tag $IMAGE_BASE/ubuntu:$CI_COMMIT_SHA --tag $IMAGE_BASE/ubuntu:latest -f Dockerfile.ubuntu .
|
||||||
- docker push $IMAGE_BASE/ubuntu:$CI_COMMIT_SHA
|
- docker push $IMAGE_BASE/ubuntu:$CI_COMMIT_SHA
|
||||||
- docker push $IMAGE_BASE/ubuntu:latest
|
- docker push $IMAGE_BASE/ubuntu:latest
|
||||||
only:
|
only:
|
||||||
@ -40,7 +40,7 @@ build-fedora:
|
|||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker pull $IMAGE_BASE/fedora || true
|
- docker pull $IMAGE_BASE/fedora || true
|
||||||
- docker build --cache-from openlp/fedora --tag $IMAGE_BASE/fedora:$CI_COMMIT_SHA --tag $IMAGE_BASE/fedora:latest -f Dockerfile.fedora .
|
- docker build --cache-from $IMAGE_BASE/fedora --tag $IMAGE_BASE/fedora:$CI_COMMIT_SHA --tag $IMAGE_BASE/fedora:latest -f Dockerfile.fedora .
|
||||||
- docker push $IMAGE_BASE/fedora:$CI_COMMIT_SHA
|
- docker push $IMAGE_BASE/fedora:$CI_COMMIT_SHA
|
||||||
- docker push $IMAGE_BASE/fedora:latest
|
- docker push $IMAGE_BASE/fedora:latest
|
||||||
only:
|
only:
|
||||||
@ -53,7 +53,7 @@ build-arch:
|
|||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker pull $IMAGE_BASE/arch || true
|
- docker pull $IMAGE_BASE/arch || true
|
||||||
- docker build --cache-from openlp/arch --tag $IMAGE_BASE/arch:$CI_COMMIT_SHA --tag $IMAGE_BASE/arch:latest -f Dockerfile.arch .
|
- docker build --cache-from $IMAGE_BASE/arch --tag $IMAGE_BASE/arch:$CI_COMMIT_SHA --tag $IMAGE_BASE/arch:latest -f Dockerfile.arch .
|
||||||
- docker push $IMAGE_BASE/arch:$CI_COMMIT_SHA
|
- docker push $IMAGE_BASE/arch:$CI_COMMIT_SHA
|
||||||
- docker push $IMAGE_BASE/arch:latest
|
- docker push $IMAGE_BASE/arch:latest
|
||||||
only:
|
only:
|
||||||
@ -66,7 +66,7 @@ build-angular:
|
|||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker pull $IMAGE_BASE/angular || true
|
- docker pull $IMAGE_BASE/angular || true
|
||||||
- docker build --cache-from openlp/angular --tag $IMAGE_BASE/angular:$CI_COMMIT_SHA --tag $IMAGE_BASE/angular:latest -f Dockerfile.angular .
|
- docker build --cache-from $IMAGE_BASE/angular --tag $IMAGE_BASE/angular:$CI_COMMIT_SHA --tag $IMAGE_BASE/angular:latest -f Dockerfile.angular .
|
||||||
- docker push $IMAGE_BASE/angular:$CI_COMMIT_SHA
|
- docker push $IMAGE_BASE/angular:$CI_COMMIT_SHA
|
||||||
- docker push $IMAGE_BASE/angular:latest
|
- docker push $IMAGE_BASE/angular:latest
|
||||||
only:
|
only:
|
||||||
@ -79,7 +79,7 @@ build-documentation:
|
|||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker pull $IMAGE_BASE/documentation || true
|
- docker pull $IMAGE_BASE/documentation || true
|
||||||
- docker build --cache-from openlp/documentation --tag $IMAGE_BASE/documentation:$CI_COMMIT_SHA --tag $IMAGE_BASE/documentation:latest -f Dockerfile.documentation .
|
- docker build --cache-from $IMAGE_BASE/documentation --tag $IMAGE_BASE/documentation:$CI_COMMIT_SHA --tag $IMAGE_BASE/documentation:latest -f Dockerfile.documentation .
|
||||||
- docker push $IMAGE_BASE/documentation:$CI_COMMIT_SHA
|
- docker push $IMAGE_BASE/documentation:$CI_COMMIT_SHA
|
||||||
- docker push $IMAGE_BASE/documentation:latest
|
- docker push $IMAGE_BASE/documentation:latest
|
||||||
only:
|
only:
|
||||||
|
Loading…
Reference in New Issue
Block a user