Skip to content

Commit

Permalink
1514: remove enum from bump up to be able to provide a custom string …
Browse files Browse the repository at this point in the history
…for multiple platforms
  • Loading branch information
f1sh1918 committed Jul 23, 2024
1 parent b662050 commit 0de1500
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 24 deletions.
20 changes: 8 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,14 +489,10 @@ jobs:
docker:
- image: cimg/node:20.13.1
parameters:
platform:
platforms:
default: all
description: Set a platform for the git tag
enum:
- all
- web
- native
type: enum
description: Set one or multiple platforms for git tag f.e. "web" or "web/native"
type: string
prepare_delivery:
default: false
description: Whether to prepare for a delivery. If true, the version bump is committed.
Expand All @@ -516,7 +512,7 @@ jobs:
condition: << parameters.prepare_delivery >>
steps:
- run:
command: app-toolbelt v0 release bump-to ${NEW_VERSION_NAME} ${NEW_VERSION_CODE} --deliverino-private-key ${DELIVERINO_PRIVATE_KEY} --owner ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME} --branch ${CIRCLE_BRANCH} --platform << parameters.platform >>
command: app-toolbelt v0 release bump-to ${NEW_VERSION_NAME} ${NEW_VERSION_CODE} --deliverino-private-key ${DELIVERINO_PRIVATE_KEY} --owner ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME} --branch ${CIRCLE_BRANCH} --platforms << parameters.platforms >>
name: Bump git version
- when:
condition:
Expand Down Expand Up @@ -1307,7 +1303,7 @@ workflows:
- bump_version:
context:
- deliverino
platform: web
platforms: web
prepare_delivery: true
- check_administration
- build_administration:
Expand Down Expand Up @@ -1372,7 +1368,7 @@ workflows:
- bump_version:
context:
- deliverino
platform: web
platforms: web
prepare_delivery: true
- check_administration
- build_administration:
Expand Down Expand Up @@ -1437,7 +1433,7 @@ workflows:
- bump_version:
context:
- deliverino
platform: native
platforms: native
prepare_delivery: true
- check
- check_frontend:
Expand Down Expand Up @@ -1530,7 +1526,7 @@ workflows:
- bump_version:
context:
- deliverino
platform: native
platforms: native
prepare_delivery: true
- check_frontend
- build_android:
Expand Down
12 changes: 4 additions & 8 deletions .circleci/src/jobs/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ parameters:
description: Whether to prepare for a delivery. If true, the version bump is committed.
type: boolean
default: false
platform:
description: Set a platform for the git tag
enum:
- 'all'
- 'web'
- 'native'
platforms:
description: Set one or multiple platforms for git tag f.e. "web" or "web/native"
default: 'all'
type: enum
type: string
docker:
- image: cimg/node:20.13.1
resource_class: small
Expand All @@ -30,7 +26,7 @@ steps:
steps:
- run:
name: Bump git version
command: app-toolbelt v0 release bump-to ${NEW_VERSION_NAME} ${NEW_VERSION_CODE} --deliverino-private-key ${DELIVERINO_PRIVATE_KEY} --owner ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME} --branch ${CIRCLE_BRANCH} --platform << parameters.platform >>
command: app-toolbelt v0 release bump-to ${NEW_VERSION_NAME} ${NEW_VERSION_CODE} --deliverino-private-key ${DELIVERINO_PRIVATE_KEY} --owner ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME} --branch ${CIRCLE_BRANCH} --platforms << parameters.platforms >>
- when:
condition:
and:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ when: << pipeline.parameters.run_deliver_beta_backend_administration >>
jobs:
- bump_version:
prepare_delivery: true
platform: web
platforms: web
context:
- deliverino
- check_administration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ when: << pipeline.parameters.run_deliver_production_backend_administration >>
jobs:
- bump_version:
prepare_delivery: true
platform: web
platforms: web
context:
- deliverino
- check_administration
Expand Down
2 changes: 1 addition & 1 deletion .circleci/src/workflows/delivery_beta_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ when: << pipeline.parameters.run_delivery_beta_native >>
jobs:
- bump_version:
prepare_delivery: true
platform: native
platforms: native
context:
- deliverino
- check
Expand Down
2 changes: 1 addition & 1 deletion .circleci/src/workflows/delivery_production_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ when: << pipeline.parameters.run_delivery_production_native >>
jobs:
- bump_version:
prepare_delivery: true
platform: native
platforms: native
context:
- deliverino
- check_frontend
Expand Down

0 comments on commit 0de1500

Please sign in to comment.