Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1514: Use predefined platform git tag #1515

Merged
merged 3 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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