From e80123bc6695aba5ff95dd79e7c42dea1c36db7a Mon Sep 17 00:00:00 2001 From: Marian Steinbach Date: Mon, 4 Nov 2024 18:00:04 +0100 Subject: [PATCH] Ignore default branch with 'push-to-registries' and 'push-to-app-catalog' (#180) * Ignore default branch * formatting --------- Co-authored-by: Zach Stone --- .circleci/config.yml | 193 ++++++++++++++++++++++--------------------- 1 file changed, 101 insertions(+), 92 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d8e6f96..d990a576 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,101 +6,110 @@ orbs: workflows: build: jobs: - - architect/go-build: - name: go-build - binary: teleport-operator - resource_class: large - filters: - tags: - only: /^v.*/ + - architect/go-build: + name: go-build + binary: teleport-operator + resource_class: large + filters: + tags: + only: /^v.*/ - - architect/push-to-registries: - context: architect - name: push-to-registries - requires: - - go-build - filters: - tags: - only: /^v.*/ - - architect/push-to-app-catalog: - context: "architect" - executor: "app-build-suite" # uncomment this if you want automatic metadata generation and helm chart linting - name: push-teleport-operator-to-app-catalog - app_catalog: "control-plane-catalog" - app_catalog_test: "control-plane-test-catalog" - chart: "teleport-operator" - requires: - - push-to-registries - filters: - tags: - only: /^v.*/ + - architect/push-to-registries: + context: architect + name: push-to-registries + requires: + - go-build + filters: + tags: + only: /^v.*/ + branches: + ignore: + - main + - master + + - architect/push-to-app-catalog: + context: architect + executor: app-build-suite + name: push-teleport-operator-to-app-catalog + app_catalog: control-plane-catalog + app_catalog_test: control-plane-test-catalog + chart: teleport-operator + requires: + - push-to-registries + filters: + tags: + only: /^v.*/ + branches: + ignore: + - main + - master - - architect/push-to-app-collection: - context: architect - name: push-to-capa-app-collection - app_name: "teleport-operator" - app_collection_repo: "capa-app-collection" - requires: - - push-teleport-operator-to-app-catalog - - push-to-registries - filters: - branches: - ignore: /.*/ - tags: - only: /^v.*/ + - architect/push-to-app-collection: + context: architect + name: push-to-capa-app-collection + app_name: teleport-operator + app_collection_repo: capa-app-collection + requires: + - push-teleport-operator-to-app-catalog + - push-to-registries + filters: + branches: + ignore: /.*/ + tags: + only: /^v.*/ - - architect/push-to-app-collection: - context: architect - name: push-to-cloud-director-app-collection - app_name: "teleport-operator" - app_collection_repo: "cloud-director-app-collection" - requires: - - push-teleport-operator-to-app-catalog - - push-to-registries - filters: - branches: - ignore: /.*/ - tags: - only: /^v.*/ + - architect/push-to-app-collection: + context: architect + name: push-to-cloud-director-app-collection + app_name: teleport-operator + app_collection_repo: cloud-director-app-collection + requires: + - push-teleport-operator-to-app-catalog + - push-to-registries + filters: + branches: + ignore: /.*/ + tags: + only: /^v.*/ - - architect/push-to-app-collection: - context: architect - name: push-to-capz-app-collection - app_name: "teleport-operator" - app_collection_repo: "capz-app-collection" - requires: - - push-teleport-operator-to-app-catalog - - push-to-registries - filters: - branches: - ignore: /.*/ - tags: - only: /^v.*/ + - architect/push-to-app-collection: + context: architect + name: push-to-capz-app-collection + app_name: teleport-operator + app_collection_repo: capz-app-collection + requires: + - push-teleport-operator-to-app-catalog + - push-to-registries + filters: + branches: + ignore: /.*/ + tags: + only: /^v.*/ - - architect/push-to-app-collection: - context: architect - name: push-to-gcp-app-collection - app_name: "teleport-operator" - app_collection_repo: "gcp-app-collection" - requires: - - push-teleport-operator-to-app-catalog - - push-to-registries - filters: - branches: - ignore: /.*/ - tags: - only: /^v.*/ + - architect/push-to-app-collection: + context: architect + name: push-to-gcp-app-collection + app_name: teleport-operator + app_collection_repo: gcp-app-collection + requires: + - push-teleport-operator-to-app-catalog + - push-to-registries + filters: + branches: + ignore: /.*/ + tags: + only: /^v.*/ - - architect/push-to-app-collection: - context: architect - name: push-to-vsphere-app-collection - app_name: "teleport-operator" - app_collection_repo: "vsphere-app-collection" - requires: - - push-teleport-operator-to-app-catalog - - push-to-registries - filters: - branches: - ignore: /.*/ - tags: - only: /^v.*/ + - architect/push-to-app-collection: + context: architect + name: push-to-vsphere-app-collection + app_name: teleport-operator + app_collection_repo: vsphere-app-collection + requires: + - push-teleport-operator-to-app-catalog + - push-to-registries + filters: + branches: + ignore: /.*/ + tags: + only: /^v.*/