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 all commits
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
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,10 @@ jobs:
docker:
- image: cimg/node:20.13.1
parameters:
platforms:
default: all
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 @@ -508,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}
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 @@ -1311,6 +1315,7 @@ workflows:
- bump_version:
context:
- deliverino
platforms: web
prepare_delivery: true
- check_administration
- build_administration:
Expand Down Expand Up @@ -1375,6 +1380,7 @@ workflows:
- bump_version:
context:
- deliverino
platforms: web
prepare_delivery: true
- check_administration
- build_administration:
Expand Down Expand Up @@ -1439,6 +1445,7 @@ workflows:
- bump_version:
context:
- deliverino
platforms: native
prepare_delivery: true
- check
- check_frontend:
Expand Down Expand Up @@ -1531,6 +1538,7 @@ workflows:
- bump_version:
context:
- deliverino
platforms: native
prepare_delivery: true
- check_frontend
- build_android:
Expand Down
6 changes: 5 additions & 1 deletion .circleci/src/jobs/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ parameters:
description: Whether to prepare for a delivery. If true, the version bump is committed.
type: boolean
default: false
platforms:
description: Set one or multiple platforms for git tag f.e. "web" or "web/native"
default: 'all'
type: string
docker:
- image: cimg/node:20.13.1
resource_class: small
Expand All @@ -22,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}
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,6 +2,7 @@ when: << pipeline.parameters.run_deliver_beta_backend_administration >>
jobs:
- bump_version:
prepare_delivery: true
platforms: 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
platforms: 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
platforms: 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
platforms: native
context:
- deliverino
- check_frontend
Expand Down