Skip to content

Commit

Permalink
Add description to an app and only commit on prod env
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-quintero committed Feb 12, 2024
1 parent 7333059 commit ac6c5f8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ jobs:
working-directory: ./community-apps/.nextmv

- name: Commit new versions
if: ${{ github.ref_name == 'develop' && inputs.TARGET_ENVIRONMENT == 'prod' }}
run: |
git add */VERSION
git commit -S -m "Bump app versions: ${{ inputs.APPS }}"
Expand Down
4 changes: 3 additions & 1 deletion .nextmv/update_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def update_manifest(

name = app["name"]
version = app["version"]
workflow_info = app_workflow_info(name)

new = copy.deepcopy(old)
if new == {}:
Expand All @@ -296,16 +297,17 @@ def update_manifest(
if name == manifest_app["name"]:
versions = manifest_app["versions"]
manifest_app["latest"] = version
manifest_app["description"] = workflow_info["description"]
if version not in versions:
versions.append(version)

found = True
break

if not found:
workflow_info = app_workflow_info(name)
manifest_apps.append(
{
"description": workflow_info["description"],
"latest": version,
"name": name,
"type": workflow_info["type"],
Expand Down
22 changes: 18 additions & 4 deletions .nextmv/workflow-configuration.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,75 @@
apps:
- name: cost-flow-ortools
type: python
app_id:
marketplace_app_id:
description: Solve a cost-flow problem using Google OR-Tools in Python.
- name: knapsack-gosdk
type: go
sdk_version: latest
app_id: knapsack-gosdk
marketplace_app_id: knapsack.gosdk
description: Solve a knapsack problem using the Nextmv Go SDK.
- name: knapsack-java-ortools
type: java
app_id: knapsack-jortools
marketplace_app_id: knapsack.jortools
description: Solve a knapsack problem using Google OR-Tools in Java.
- name: knapsack-ortools
type: python
app_id: knapsack-ortools
marketplace_app_id: knapsack.ortools
description: Solve a knapsack problem using Google OR-Tools in Python.
- name: knapsack-pyomo
type: python
app_id: knapsack-pyomo
marketplace_app_id: knapsack.pyomo
description: Solve a knapsack problem using Pyomo.
- name: nextroute
type: go
sdk_version: latest
app_id: nextroute
marketplace_app_id: nextroute
description: Solve a vehicle routing problem using Nextmv’s Nextroute.
- name: order-fulfillment-gosdk
type: go
sdk_version: latest
app_id: order-fulfill-gosdk
marketplace_app_id: order.fulfill.gosdk
description: Solve an order fulfillment problem using the Nextmv Go SDK.
- name: routing-ortools
type: python
app_id: routing-ortools
marketplace_app_id: routing.ortools
description: Solve a vehicle routing problem using Google OR-Tools in Python.
- name: shift-assignment-ortools
type: python
app_id: shift-assign-ortools
marketplace_app_id: shift.assign.ortools
description: Solve a shift assignment problem using Google OR-Tools in Python.
- name: shift-assignment-pyomo
type: python
app_id: shift-assign-pyomo
marketplace_app_id: shift.assign.pyomo
description: Solve a shift assignment problem using Pyomo.
- name: shift-planning-ortools
type: python
app_id: shift-plan-ortools
marketplace_app_id: shift.plan.ortools
description: Solve a shift planning problem using Google OR-Tools in Python.
- name: shift-planning-pyomo
type: python
app_id: shift-plan-pyomo
marketplace_app_id: shift.plan.pyomo
description: Solve a shift planning problem using Pyomo.
- name: shift-scheduling-gosdk
type: go
sdk_version: latest
app_id: shift-scheduling
marketplace_app_id: shift.scheduling
description: Solve a shift scheduling problem using the Nextmv Go SDK.
- name: xpress
type: python
app_id:
marketplace_app_id:
- name: cost-flow-ortools
type: python
app_id:
marketplace_app_id:
description: Solve a knapsack problem using Xpress in Python.
2 changes: 1 addition & 1 deletion knapsack-gosdk/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.2.1
v1.2.0
2 changes: 1 addition & 1 deletion knapsack-java-ortools/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.2.2
v1.2.0

0 comments on commit ac6c5f8

Please sign in to comment.