From 2de8c78534b8b99c49a3d12f9f3ead8f6cb02386 Mon Sep 17 00:00:00 2001 From: Janne Mareike Koschinski <janne@kuschku.de> Date: Wed, 18 May 2022 00:34:56 +0200 Subject: [PATCH] ci: improve DAG rules --- actual/pipeline.yml | 4 ++++ imghost/pipeline.yml | 4 ++++ jellyfin/pipeline.yml | 4 ++++ languagetool/pipeline.yml | 4 ++++ mailu/pipeline.yml | 4 ++++ oauth2-proxy/pipeline.yml | 4 ++++ quassel/pipeline.yml | 5 ++++- 7 files changed, 28 insertions(+), 1 deletion(-) diff --git a/actual/pipeline.yml b/actual/pipeline.yml index b768c27..7448b18 100644 --- a/actual/pipeline.yml +++ b/actual/pipeline.yml @@ -5,6 +5,10 @@ lint-actual: release-actual: stage: release + needs: + - lint-actual + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' script: - apk add --no-cache git - helm plugin install https://github.com/chartmuseum/helm-push.git diff --git a/imghost/pipeline.yml b/imghost/pipeline.yml index 913bff0..1c83112 100644 --- a/imghost/pipeline.yml +++ b/imghost/pipeline.yml @@ -5,6 +5,10 @@ lint-imghost: release-imghost: stage: release + needs: + - lint-imghost + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' script: - apk add --no-cache git - helm plugin install https://github.com/chartmuseum/helm-push.git diff --git a/jellyfin/pipeline.yml b/jellyfin/pipeline.yml index 4d5137b..2506eaa 100644 --- a/jellyfin/pipeline.yml +++ b/jellyfin/pipeline.yml @@ -5,6 +5,10 @@ lint-jellyfin: release-jellyfin: stage: release + needs: + - lint-jellyfin + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' script: - apk add --no-cache git - helm plugin install https://github.com/chartmuseum/helm-push.git diff --git a/languagetool/pipeline.yml b/languagetool/pipeline.yml index 269db73..22a976b 100644 --- a/languagetool/pipeline.yml +++ b/languagetool/pipeline.yml @@ -5,6 +5,10 @@ lint-languagetool: release-languagetool: stage: release + needs: + - lint-languagetool + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' script: - apk add --no-cache git - helm plugin install https://github.com/chartmuseum/helm-push.git diff --git a/mailu/pipeline.yml b/mailu/pipeline.yml index 48a68a8..002c98a 100644 --- a/mailu/pipeline.yml +++ b/mailu/pipeline.yml @@ -5,6 +5,10 @@ lint-mailu: release-mailu: stage: release + needs: + - lint-mailu + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' script: - apk add --no-cache git - helm plugin install https://github.com/chartmuseum/helm-push.git diff --git a/oauth2-proxy/pipeline.yml b/oauth2-proxy/pipeline.yml index d953e10..fc476a9 100644 --- a/oauth2-proxy/pipeline.yml +++ b/oauth2-proxy/pipeline.yml @@ -5,6 +5,10 @@ lint-oauth2-proxy: release-oauth2-proxy: stage: release + needs: + - lint-oauth2-proxy + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' script: - apk add --no-cache git - helm plugin install https://github.com/chartmuseum/helm-push.git diff --git a/quassel/pipeline.yml b/quassel/pipeline.yml index 3bff89a..d540fb3 100644 --- a/quassel/pipeline.yml +++ b/quassel/pipeline.yml @@ -5,9 +5,12 @@ lint-quassel: release-quassel: stage: release + needs: + - lint-quassel + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' script: - apk add --no-cache git - helm plugin install https://github.com/chartmuseum/helm-push.git - helm repo add --username gitlab-ci-token --password $CI_JOB_TOKEN repo ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable - helm cm-push quassel repo - -- GitLab