Skip to content

Commit

Permalink
1446-promote-all: add promote all workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
f1sh1918 committed Jun 24, 2024
1 parent 28465c5 commit dfe47b3
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,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 web --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 @@ -1055,6 +1064,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 @@ -1625,6 +1637,12 @@ workflows:
requires:
- check_frontend
when: << pipeline.parameters.run_frontend >>
promote_all:
jobs:
- 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 web --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 dfe47b3

Please sign in to comment.