Skip to content

Commit

Permalink
Merge pull request #1785 from digitalfabrik/docs-ci-cd
Browse files Browse the repository at this point in the history
Docs CI CD
  • Loading branch information
f1sh1918 authored Jan 20, 2025
2 parents 2a24735 + 9d6c950 commit d2927d1
Show file tree
Hide file tree
Showing 15 changed files with 373 additions and 175 deletions.
268 changes: 134 additions & 134 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,9 @@ orbs:
browser-tools: circleci/browser-tools@1.4.1
gradle: circleci/gradle@2.2.0
parameters:
run_build_frontend:
default: false
type: boolean
run_commit:
default: true
type: boolean
Expand All @@ -1042,35 +1045,71 @@ parameters:
- run
- skip
type: enum
run_deliver_beta_backend_administration:
default: false
type: boolean
run_deliver_production_backend_administration:
run_delivery_beta_all:
default: false
type: boolean
run_delivery_beta_all:
run_delivery_beta_backend_administration:
default: false
type: boolean
run_delivery_beta_native:
run_delivery_beta_frontend:
default: false
type: boolean
run_delivery_production_native:
run_delivery_production_backend_administration:
default: false
type: boolean
run_frontend:
run_delivery_production_frontend:
default: false
type: boolean
run_promote_all:
run_promotion_all:
default: false
type: boolean
run_promote_backend_administration:
run_promotion_backend_administration:
default: false
type: boolean
run_promote_native:
run_promotion_frontend:
default: false
type: boolean
version: 2.1
workflows:
build_frontend:
jobs:
- check_frontend
- build_android:
buildConfig: bayernFloss
name: frontend-android-build-bayernFloss
requires:
- check_frontend
- build_android:
buildConfig: bayern
name: frontend-android-build-bayern
requires:
- check_frontend
- build_ios:
buildConfig: bayern
name: frontend-ios-build-bayern
requires:
- check_frontend
- build_android:
buildConfig: nuernberg
name: frontend-android-build-nuernberg
requires:
- check_frontend
- build_ios:
buildConfig: nuernberg
name: frontend-ios-build-nuernberg
requires:
- check_frontend
- build_android:
buildConfig: koblenz
name: frontend-android-build-koblenz
requires:
- check_frontend
- build_ios:
buildConfig: koblenz
name: frontend-ios-build-koblenz
requires:
- check_frontend
when: << pipeline.parameters.run_build_frontend >>
commit:
jobs:
- check
Expand Down Expand Up @@ -1147,7 +1186,7 @@ workflows:
- equal:
- main
- << pipeline.git.branch >>
deliver_beta_all:
delivery_beta_all:
jobs:
- bump_version:
context:
Expand Down Expand Up @@ -1329,7 +1368,7 @@ workflows:
- deliver_ios_koblenz
- install_packages_to_server_staging
when: << pipeline.parameters.run_delivery_beta_all >>
deliver_beta_backend_administration:
delivery_beta_backend_administration:
jobs:
- bump_version:
context:
Expand Down Expand Up @@ -1399,79 +1438,8 @@ workflows:
production_delivery: false
requires:
- install_packages_to_server_staging
when: << pipeline.parameters.run_deliver_beta_backend_administration >>
deliver_production_backend_administration:
jobs:
- bump_version:
context:
- deliverino
platforms: web
prepare_delivery: true
- check_administration
- build_administration:
requires:
- check_administration
- bump_version
- pack_administration:
requires:
- build_administration
- build_martin
- check_backend
- build_backend:
requires:
- check_backend
- pack_backend:
requires:
- build_backend
- bump_version
- check_health_backend:
requires:
- pack_backend
- pack_martin:
requires:
- build_martin
- bump_version
- pack_meta:
requires:
- bump_version
- upload_packages_to_server:
bundle: administration
context:
- credentials-ehrenamtskarte
name: upload_administration_packages_to_server_production
production: true
requires:
- pack_administration
- check_health_backend
- pack_martin
- pack_meta
- upload_packages_to_server:
bundle: backend
context:
- credentials-ehrenamtskarte
name: upload_backend_packages_to_server_production
production: true
requires:
- pack_administration
- check_health_backend
- pack_martin
- pack_meta
- install_packages_to_server:
context:
- credentials-ehrenamtskarte
name: install_packages_to_server_production
production: true
requires:
- upload_administration_packages_to_server_production
- upload_backend_packages_to_server_production
- notify_release:
context:
- deliverino
production_delivery: true
requires:
- install_packages_to_server_production
when: << pipeline.parameters.run_deliver_production_backend_administration >>
delivery_beta_native:
when: << pipeline.parameters.run_delivery_beta_backend_administration >>
delivery_beta_frontend:
jobs:
- bump_version:
context:
Expand Down Expand Up @@ -1595,8 +1563,79 @@ workflows:
- deliver_ios_bayern
- deliver_ios_nuernberg
- deliver_ios_koblenz
when: << pipeline.parameters.run_delivery_beta_native >>
delivery_production_native:
when: << pipeline.parameters.run_delivery_beta_frontend >>
delivery_production_backend_administration:
jobs:
- bump_version:
context:
- deliverino
platforms: web
prepare_delivery: true
- check_administration
- build_administration:
requires:
- check_administration
- bump_version
- pack_administration:
requires:
- build_administration
- build_martin
- check_backend
- build_backend:
requires:
- check_backend
- pack_backend:
requires:
- build_backend
- bump_version
- check_health_backend:
requires:
- pack_backend
- pack_martin:
requires:
- build_martin
- bump_version
- pack_meta:
requires:
- bump_version
- upload_packages_to_server:
bundle: administration
context:
- credentials-ehrenamtskarte
name: upload_administration_packages_to_server_production
production: true
requires:
- pack_administration
- check_health_backend
- pack_martin
- pack_meta
- upload_packages_to_server:
bundle: backend
context:
- credentials-ehrenamtskarte
name: upload_backend_packages_to_server_production
production: true
requires:
- pack_administration
- check_health_backend
- pack_martin
- pack_meta
- install_packages_to_server:
context:
- credentials-ehrenamtskarte
name: install_packages_to_server_production
production: true
requires:
- upload_administration_packages_to_server_production
- upload_backend_packages_to_server_production
- notify_release:
context:
- deliverino
production_delivery: true
requires:
- install_packages_to_server_production
when: << pipeline.parameters.run_delivery_production_backend_administration >>
delivery_production_frontend:
jobs:
- bump_version:
context:
Expand Down Expand Up @@ -1681,47 +1720,8 @@ workflows:
- deliver_ios_nuernberg
- deliver_android_bayern
- deliver_android_nuernberg
when: << pipeline.parameters.run_delivery_production_native >>
frontend:
jobs:
- check_frontend
- build_android:
buildConfig: bayernFloss
name: frontend-android-build-bayernFloss
requires:
- check_frontend
- build_android:
buildConfig: bayern
name: frontend-android-build-bayern
requires:
- check_frontend
- build_ios:
buildConfig: bayern
name: frontend-ios-build-bayern
requires:
- check_frontend
- build_android:
buildConfig: nuernberg
name: frontend-android-build-nuernberg
requires:
- check_frontend
- build_ios:
buildConfig: nuernberg
name: frontend-ios-build-nuernberg
requires:
- check_frontend
- build_android:
buildConfig: koblenz
name: frontend-android-build-koblenz
requires:
- check_frontend
- build_ios:
buildConfig: koblenz
name: frontend-ios-build-koblenz
requires:
- check_frontend
when: << pipeline.parameters.run_frontend >>
promote_all:
when: << pipeline.parameters.run_delivery_production_frontend >>
promotion_all:
jobs:
- promote_android:
build_config_name: bayern
Expand Down Expand Up @@ -1754,15 +1754,15 @@ workflows:
- promote_github_release:
context:
- deliverino
when: << pipeline.parameters.run_promote_all >>
promote_backend_administration:
when: << pipeline.parameters.run_promotion_all >>
promotion_backend_administration:
jobs:
- promote_to_server:
context:
- credentials-ehrenamtskarte
name: promote_backend_administration
when: << pipeline.parameters.run_promote_backend_administration >>
promote_native:
when: << pipeline.parameters.run_promotion_backend_administration >>
promotion_frontend:
jobs:
- promote_android:
build_config_name: bayern
Expand All @@ -1788,5 +1788,5 @@ workflows:
- mattermost
- tuerantuer-apple
name: promote_nuernberg_ios
when: << pipeline.parameters.run_promote_native >>
when: << pipeline.parameters.run_promotion_frontend >>

16 changes: 8 additions & 8 deletions .circleci/src/@common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,30 @@ parameters:
default: "run_if_on_main"
type: enum
enum: ["run_if_on_main", "run", "skip"]
run_deliver_beta_backend_administration:
run_delivery_beta_backend_administration:
default: false
type: boolean
run_deliver_production_backend_administration:
run_delivery_production_backend_administration:
default: false
type: boolean
run_frontend:
run_build_frontend:
default: false
type: boolean
run_delivery_beta_native:
run_delivery_beta_frontend:
default: false
type: boolean
run_delivery_production_native:
run_delivery_production_frontend:
default: false
type: boolean
run_promote_native:
run_promotion_frontend:
default: false
type: boolean
run_promote_backend_administration:
run_promotion_backend_administration:
default: false
type: boolean
run_delivery_beta_all:
default: false
type: boolean
run_promote_all:
run_promotion_all:
default: false
type: boolean
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
when: << pipeline.parameters.run_frontend >>
when: << pipeline.parameters.run_build_frontend >>
jobs:
- check_frontend
- build_android:
Expand Down
Loading

0 comments on commit d2927d1

Please sign in to comment.