Skip to content

Commit

Permalink
Merge pull request #1504 from digitalfabrik/1446-promote-all
Browse files Browse the repository at this point in the history
1446: Promote all
  • Loading branch information
f1sh1918 authored Jul 16, 2024
2 parents 3e55ab3 + e09e691 commit 9395830
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,15 @@ jobs:
name: '[FL] Play Store Promotion'
working_directory: frontend/android
- notify
promote_github_release:
docker:
- image: cimg/node:20.13.1
steps:
- install_app_toolbelt
- run:
command: app-toolbelt v0 release promote --platform all --deliverino-private-key ${DELIVERINO_PRIVATE_KEY} --owner ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME}
name: Remove prerelease flag from github release
- notify
promote_ios:
environment:
FASTLANE_SKIP_UPDATE_CHECK: true
Expand Down Expand Up @@ -1058,6 +1067,9 @@ parameters:
run_frontend:
default: false
type: boolean
run_promote_all:
default: false
type: boolean
run_promote_backend_administration:
default: false
type: boolean
Expand Down Expand Up @@ -1628,6 +1640,40 @@ workflows:
requires:
- check_frontend
when: << pipeline.parameters.run_frontend >>
promote_all:
jobs:
- promote_android:
build_config_name: bayern
context:
- mattermost
- tuerantuer-google-play
name: promote_bayern_android
- promote_android:
build_config_name: nuernberg
context:
- mattermost
- tuerantuer-google-play
name: promote_nuernberg_android
- promote_ios:
build_config_name: bayern
context:
- mattermost
- tuerantuer-apple
name: promote_bayern_ios
- promote_ios:
build_config_name: nuernberg
context:
- mattermost
- tuerantuer-apple
name: promote_nuernberg_ios
- promote_to_server:
context:
- credentials-ehrenamtskarte
name: promote_backend_administration
- promote_github_release:
context:
- deliverino
when: << pipeline.parameters.run_promote_all >>
promote_backend_administration:
jobs:
- promote_to_server:
Expand Down
3 changes: 3 additions & 0 deletions .circleci/src/@common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ parameters:
default: false
type: boolean
run_delivery_beta_all:
default: false
type: boolean
run_promote_all:
default: false
type: boolean
8 changes: 8 additions & 0 deletions .circleci/src/jobs/promote_github_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
docker:
- image: cimg/node:20.13.1
steps:
- install_app_toolbelt
- run:
name: Remove prerelease flag from github release
command: app-toolbelt v0 release promote --platform all --deliverino-private-key ${DELIVERINO_PRIVATE_KEY} --owner ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME}
- notify
33 changes: 33 additions & 0 deletions .circleci/src/workflows/promote_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
when: << pipeline.parameters.run_promote_all >>
jobs:
- promote_android:
name: promote_bayern_android
build_config_name: bayern
context:
- mattermost
- tuerantuer-google-play
- promote_android:
name: promote_nuernberg_android
build_config_name: nuernberg
context:
- mattermost
- tuerantuer-google-play
- promote_ios:
name: promote_bayern_ios
build_config_name: bayern
context:
- mattermost
- tuerantuer-apple
- promote_ios:
name: promote_nuernberg_ios
build_config_name: nuernberg
context:
- mattermost
- tuerantuer-apple
- promote_to_server:
name: promote_backend_administration
context:
- credentials-ehrenamtskarte
- promote_github_release:
context:
- deliverino

0 comments on commit 9395830

Please sign in to comment.