Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore default branch with 'push-to-registries' and 'push-to-app-catalog' #362

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
322 changes: 167 additions & 155 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,172 +6,184 @@ orbs:
workflows:
test:
jobs:
- architect/go-build:
name: go-build
binary: athena
filters:
tags:
only: /^v.*/
- architect/go-build:
name: go-build
binary: athena
filters:
tags:
only: /^v.*/

- architect/push-to-registries:
context: architect
name: push-to-registries
requires:
- go-build
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
name: push-athena-to-control-plane-app-catalog
app_catalog: "control-plane-catalog"
app_catalog_test: "control-plane-test-catalog"
chart: "athena"
executor: "app-build-suite"
persist_chart_archive: true
branches:
ignore:
- main
- master
- architect/push-to-app-catalog:
context: architect
name: push-athena-to-control-plane-app-catalog
app_catalog: control-plane-catalog
app_catalog_test: control-plane-test-catalog
chart: athena
executor: app-build-suite
persist_chart_archive: true
# Trigger job on git tag.
filters:
tags:
only: /^v.*/
requires:
- push-to-registries
- architect/push-to-app-collection:
name: push-athena-to-aws-app-collection
context: architect
app_name: "athena"
app_collection_repo: "aws-app-collection"
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
filters:
tags:
only: /^v.*/
branches:
ignore:
- main
- master
requires:
- push-to-registries
- architect/push-to-app-collection:
name: push-athena-to-aws-app-collection
context: architect
app_name: athena
app_collection_repo: aws-app-collection
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-collection:
name: push-athena-to-azure-app-collection
context: architect
app_name: "athena"
app_collection_repo: "azure-app-collection"
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
name: push-athena-to-azure-app-collection
context: architect
app_name: athena
app_collection_repo: azure-app-collection
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-collection:
name: push-athena-to-capa-app-collection
context: architect
app_name: "athena"
app_collection_repo: "capa-app-collection"
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
name: push-athena-to-capa-app-collection
context: architect
app_name: athena
app_collection_repo: capa-app-collection
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-collection:
name: push-athena-to-vsphere-app-collection
context: architect
app_name: "athena"
app_collection_repo: "vsphere-app-collection"
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
name: push-athena-to-vsphere-app-collection
context: architect
app_name: athena
app_collection_repo: vsphere-app-collection
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-catalog:
context: architect
name: push-athena-to-giantswarm-catalog
app_catalog: "giantswarm-catalog"
app_catalog_test: "giantswarm-test-catalog"
chart: "athena"
executor: "app-build-suite"
- architect/push-to-app-catalog:
context: architect
name: push-athena-to-giantswarm-catalog
app_catalog: giantswarm-catalog
app_catalog_test: giantswarm-test-catalog
chart: athena
executor: app-build-suite
# Trigger job on git tag.
filters:
tags:
only: /^v.*/
requires:
- push-to-registries
- architect/run-tests-with-ats:
name: execute chart tests
filters:
filters:
tags:
only: /^v.*/
branches:
ignore:
- main
- master
requires:
- push-to-registries
- architect/run-tests-with-ats:
name: execute chart tests
filters:
# Do not trigger the job on merge to main.
branches:
ignore:
- main
requires:
- push-athena-to-control-plane-app-catalog
branches:
ignore:
- main
requires:
- push-athena-to-control-plane-app-catalog


- architect/push-to-app-collection:
context: architect
name: push-to-cloud-director-app-collection
app_name: "athena"
app_collection_repo: cloud-director-app-collection
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
context: architect
name: push-to-cloud-director-app-collection
app_name: athena
app_collection_repo: cloud-director-app-collection
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-collection:
context: architect
name: push-to-capa-app-collection
app_name: "athena"
app_collection_repo: "capa-app-collection"
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
context: architect
name: push-to-capa-app-collection
app_name: athena
app_collection_repo: capa-app-collection
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-collection:
context: architect
name: push-to-gcp-app-collection
app_name: "athena"
app_collection_repo: "gcp-app-collection"
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
context: architect
name: push-to-gcp-app-collection
app_name: athena
app_collection_repo: gcp-app-collection
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-collection:
context: architect
name: push-to-kvm-app-collection
app_name: "athena"
app_collection_repo: "kvm-app-collection"
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
context: architect
name: push-to-capz-app-collection
app_name: "athena"
app_collection_repo: "capz-app-collection"
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
context: architect
name: push-to-kvm-app-collection
app_name: athena
app_collection_repo: kvm-app-collection
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
context: architect
name: push-to-capz-app-collection
app_name: athena
app_collection_repo: capz-app-collection
requires:
- push-athena-to-control-plane-app-catalog
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/