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' #124

Merged
merged 2 commits 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
210 changes: 107 additions & 103 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,122 +6,126 @@ orbs:
jobs:
template-chart:
docker:
- image: giantswarm/helm-chart-testing:v3.11.0
- image: giantswarm/helm-chart-testing:v3.11.0
steps:
- checkout
- run: |-
cd helm/sloth
helm dep up
helm template .
- checkout
- run: |-
cd helm/sloth
helm dep up
helm template .

workflows:
build:
jobs:
- template-chart:
name: "template-chart-test"
filters:
branches:
ignore:
- main
- template-chart:
name: template-chart-test
filters:
branches:
ignore:
- main

# Ensure that for every commit to master and for every
# release tag, there is an app version in the catalog.
- architect/push-to-app-catalog:
context: architect
executor: app-build-suite
name: package-and-push-chart
app_catalog: "control-plane-catalog"
app_catalog_test: "control-plane-test-catalog"
chart: "sloth"
persist_chart_archive: true
filters:
tags:
only: /^v.*/
- architect/push-to-app-catalog:
context: architect
executor: app-build-suite
name: package-and-push-chart
app_catalog: control-plane-catalog
app_catalog_test: control-plane-test-catalog
chart: sloth
persist_chart_archive: true
filters:
tags:
only: /^v.*/

- architect/run-tests-with-ats:
name: run-tests-with-ats
branches:
ignore:
- main
- master
- architect/run-tests-with-ats:
name: run-tests-with-ats
## TODO Remove once new architect orb is released
app-test-suite_version: "v0.8.0"
app-test-suite_container_tag: "0.8.0"
requires:
- "package-and-push-chart"
filters:
branches:
ignore:
- main
app-test-suite_version: v0.8.0
app-test-suite_container_tag: 0.8.0
requires:
- package-and-push-chart
filters:
branches:
ignore:
- main

- architect/push-to-app-collection:
name: aws-app-collection
context: "architect"
app_catalog: control-plane-catalog
app_name: "sloth"
app_namespace: monitoring
app_collection_repo: "aws-app-collection"
requires:
- run-tests-with-ats
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
name: aws-app-collection
context: architect
app_catalog: control-plane-catalog
app_name: sloth
app_namespace: monitoring
app_collection_repo: aws-app-collection
requires:
- run-tests-with-ats
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-collection:
name: vsphere-app-collection
context: "architect"
app_catalog: control-plane-catalog
app_name: "sloth"
app_namespace: monitoring
app_collection_repo: "vsphere-app-collection"
requires:
- run-tests-with-ats
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
name: vsphere-app-collection
context: architect
app_catalog: control-plane-catalog
app_name: sloth
app_namespace: monitoring
app_collection_repo: vsphere-app-collection
requires:
- run-tests-with-ats
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-collection:
context: architect
name: push-to-cloud-director-app-collection
app_catalog: control-plane-catalog
app_name: "sloth"
app_namespace: monitoring
app_collection_repo: "cloud-director-app-collection"
requires:
- run-tests-with-ats
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
context: architect
name: push-to-cloud-director-app-collection
app_catalog: control-plane-catalog
app_name: sloth
app_namespace: monitoring
app_collection_repo: cloud-director-app-collection
requires:
- run-tests-with-ats
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-collection:
context: architect
name: push-to-capa-app-collection
app_catalog: control-plane-catalog
app_name: "sloth"
app_namespace: monitoring
app_collection_repo: "capa-app-collection"
requires:
- run-tests-with-ats
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
context: architect
name: push-to-capa-app-collection
app_catalog: control-plane-catalog
app_name: sloth
app_namespace: monitoring
app_collection_repo: capa-app-collection
requires:
- run-tests-with-ats
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

- architect/push-to-app-collection:
context: architect
name: push-to-capz-app-collection
app_catalog: control-plane-catalog
app_name: "sloth"
app_namespace: monitoring
app_collection_repo: "capz-app-collection"
requires:
- run-tests-with-ats
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- architect/push-to-app-collection:
context: architect
name: push-to-capz-app-collection
app_catalog: control-plane-catalog
app_name: sloth
app_namespace: monitoring
app_collection_repo: capz-app-collection
requires:
- run-tests-with-ats
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/