Skip to content

Commit

Permalink
1514: pass platform parameter for platform specific deliveries
Browse files Browse the repository at this point in the history
  • Loading branch information
f1sh1918 committed Jun 27, 2024
1 parent 4357b90 commit b662050
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,14 @@ jobs:
docker:
- image: cimg/node:20.13.1
parameters:
platform:
default: all
description: Set a platform for the git tag
enum:
- all
- web
- native
type: enum
prepare_delivery:
default: false
description: Whether to prepare for a delivery. If true, the version bump is committed.
Expand All @@ -508,7 +516,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}
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 >>
name: Bump git version
- when:
condition:
Expand Down Expand Up @@ -1299,6 +1307,7 @@ workflows:
- bump_version:
context:
- deliverino
platform: web
prepare_delivery: true
- check_administration
- build_administration:
Expand Down Expand Up @@ -1363,6 +1372,7 @@ workflows:
- bump_version:
context:
- deliverino
platform: web
prepare_delivery: true
- check_administration
- build_administration:
Expand Down Expand Up @@ -1427,6 +1437,7 @@ workflows:
- bump_version:
context:
- deliverino
platform: native
prepare_delivery: true
- check
- check_frontend:
Expand Down Expand Up @@ -1519,6 +1530,7 @@ workflows:
- bump_version:
context:
- deliverino
platform: native
prepare_delivery: true
- check_frontend
- build_android:
Expand Down
10 changes: 9 additions & 1 deletion .circleci/src/jobs/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ 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'
default: 'all'
type: enum
docker:
- image: cimg/node:20.13.1
resource_class: small
Expand All @@ -22,7 +30,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}
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 >>
- when:
condition:
and:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ when: << pipeline.parameters.run_deliver_beta_backend_administration >>
jobs:
- bump_version:
prepare_delivery: true
platform: web
context:
- deliverino
- check_administration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ when: << pipeline.parameters.run_deliver_production_backend_administration >>
jobs:
- bump_version:
prepare_delivery: true
platform: web
context:
- deliverino
- check_administration
Expand Down
1 change: 1 addition & 0 deletions .circleci/src/workflows/delivery_beta_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ when: << pipeline.parameters.run_delivery_beta_native >>
jobs:
- bump_version:
prepare_delivery: true
platform: native
context:
- deliverino
- check
Expand Down
1 change: 1 addition & 0 deletions .circleci/src/workflows/delivery_production_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ when: << pipeline.parameters.run_delivery_production_native >>
jobs:
- bump_version:
prepare_delivery: true
platform: native
context:
- deliverino
- check_frontend
Expand Down

0 comments on commit b662050

Please sign in to comment.