mirror of
https://gitlab.com/openlp/runners.git
synced 2024-12-22 11:22:48 +00:00
Merge branch 'fix-rules-if' into 'master'
Fix rules "if" and add ability to run individual builds manually See merge request openlp/runners!37
This commit is contained in:
commit
72fb8ab84d
@ -13,7 +13,7 @@ variables:
|
|||||||
before_script:
|
before_script:
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
|
||||||
linting:
|
lint-dockerfiles:
|
||||||
stage: test
|
stage: test
|
||||||
image: hadolint/hadolint:latest-alpine
|
image: hadolint/hadolint:latest-alpine
|
||||||
before_script:
|
before_script:
|
||||||
@ -27,7 +27,7 @@ test-debian:
|
|||||||
- docker pull $IMAGE_BASE/debian || true
|
- docker pull $IMAGE_BASE/debian || true
|
||||||
- docker build --cache-from $IMAGE_BASE/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 .
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH_SLUG != "openlp/runners"
|
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH != "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.debian
|
- Dockerfile.debian
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ test-ubuntu:
|
|||||||
- docker pull $IMAGE_BASE/ubuntu || true
|
- docker pull $IMAGE_BASE/ubuntu || true
|
||||||
- docker build --cache-from $IMAGE_BASE/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 .
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH_SLUG != "openlp/runners"
|
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH != "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.ubuntu
|
- Dockerfile.ubuntu
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ test-fedora:
|
|||||||
- docker pull $IMAGE_BASE/fedora || true
|
- docker pull $IMAGE_BASE/fedora || true
|
||||||
- docker build --cache-from $IMAGE_BASE/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 .
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH_SLUG != "openlp/runners"
|
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH != "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.fedora
|
- Dockerfile.fedora
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ test-arch:
|
|||||||
- docker pull $IMAGE_BASE/arch || true
|
- docker pull $IMAGE_BASE/arch || true
|
||||||
- docker build --cache-from $IMAGE_BASE/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 .
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH_SLUG != "openlp/runners"
|
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH != "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.arch
|
- Dockerfile.arch
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ test-angular:
|
|||||||
- docker pull $IMAGE_BASE/angular || true
|
- docker pull $IMAGE_BASE/angular || true
|
||||||
- docker build --cache-from $IMAGE_BASE/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 .
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH_SLUG != "openlp/runners"
|
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH != "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.angular
|
- Dockerfile.angular
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ test-documentation:
|
|||||||
- docker pull $IMAGE_BASE/documentation || true
|
- docker pull $IMAGE_BASE/documentation || true
|
||||||
- docker build --cache-from $IMAGE_BASE/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 .
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH_SLUG != "openlp/runners"
|
- if: $CI_COMMIT_BRANCH != "master" && $CI_PROJECT_PATH != "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.documentation
|
- Dockerfile.documentation
|
||||||
|
|
||||||
@ -89,9 +89,10 @@ build-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
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH_SLUG == "openlp/runners"
|
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.debian
|
- Dockerfile.debian
|
||||||
|
- when: manual
|
||||||
|
|
||||||
build-ubuntu:
|
build-ubuntu:
|
||||||
stage: build
|
stage: build
|
||||||
@ -101,9 +102,10 @@ build-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
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH_SLUG == "openlp/runners"
|
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.ubuntu
|
- Dockerfile.ubuntu
|
||||||
|
- when: manual
|
||||||
|
|
||||||
build-fedora:
|
build-fedora:
|
||||||
stage: build
|
stage: build
|
||||||
@ -113,9 +115,10 @@ build-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
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH_SLUG == "openlp/runners"
|
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.fedora
|
- Dockerfile.fedora
|
||||||
|
- when: manual
|
||||||
|
|
||||||
build-arch:
|
build-arch:
|
||||||
stage: build
|
stage: build
|
||||||
@ -125,9 +128,10 @@ build-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
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH_SLUG == "openlp/runners"
|
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.arch
|
- Dockerfile.arch
|
||||||
|
- when: manual
|
||||||
|
|
||||||
build-angular:
|
build-angular:
|
||||||
stage: build
|
stage: build
|
||||||
@ -137,9 +141,10 @@ build-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
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH_SLUG == "openlp/runners"
|
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.angular
|
- Dockerfile.angular
|
||||||
|
- when: manual
|
||||||
|
|
||||||
build-documentation:
|
build-documentation:
|
||||||
stage: build
|
stage: build
|
||||||
@ -149,9 +154,10 @@ build-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
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH_SLUG == "openlp/runners"
|
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == "openlp/runners"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile.documentation
|
- Dockerfile.documentation
|
||||||
|
- when: manual
|
||||||
|
|
||||||
build-all:
|
build-all:
|
||||||
stage: build
|
stage: build
|
||||||
|
Loading…
Reference in New Issue
Block a user