Skip to content

Commit

Permalink
Merge pull request #74 from nextmv-io/feature/fix-marketplace-app-names
Browse files Browse the repository at this point in the history
Fix some marketplace app names
  • Loading branch information
sebastian-quintero authored Sep 12, 2024
2 parents db729c0 + b6ce086 commit a2dce74
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,30 +123,35 @@ jobs:
echo "APPS=${APPS}" >> $GITHUB_ENV
- name: set Python version
if: ${{ env.APPS != '' }}
run: |
export PYTHON_VERSION=$(yq '.language-support.python.version' workflow-configuration.yml)
echo "This is the Python version => $PYTHON_VERSION"
echo "PYTHON_VERSION=${PYTHON_VERSION}" >> $GITHUB_ENV
working-directory: ./community-apps/.nextmv

- name: set up Python
if: ${{ env.APPS != '' }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: set go version
if: ${{ env.APPS != '' }}
run: |
export GO_VERSION=$(yq '.language-support.go.version' workflow-configuration.yml)
echo "This is the Go version => $GO_VERSION"
echo "GO_VERSION=${GO_VERSION}" >> $GITHUB_ENV
working-directory: ./community-apps/.nextmv

- name: set up go
if: ${{ env.APPS != '' }}
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Install zig
if: ${{ env.APPS != '' }}
run: |
SIGNATURE="2d00e789fec4f71790a6e7bf83ff91d564943c5ee843c5fd966efc474b423047 zig-linux-x86_64-0.11.0.tar.xz"
curl -sSfL https://ziglang.org/download/0.11.0/zig-linux-x86_64-0.11.0.tar.xz -o zig-linux-x86_64-0.11.0.tar.xz
Expand All @@ -156,32 +161,37 @@ jobs:
zig version
- name: Install Python dependencies
if: ${{ env.APPS != '' }}
run: |
pip install --upgrade pip
pip install -r requirements.txt
working-directory: ./community-apps/.nextmv/release

- name: Set up AWS CLI
if: ${{ env.APPS != '' }}
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.ROLE }}
aws-region: ${{ env.REGION }}
role-duration-seconds: 1200

- name: Set up JDK
if: ${{ env.APPS != '' }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: "maven"

- name: Install Nextmv CLI
if: ${{ env.APPS != '' }}
run: |
export NEXTMV_API_KEY=$MARKETPLACE_API_KEY
export NEXTMV_BASE_URL=https://$API_ENDPOINT
curl -sS "https://$CONSOLE_URL/install-cli.txt" | bash -
- name: Set up Nextmv CLI
if: ${{ env.APPS != '' }}
run: |
export PATH=$PATH:~/.nextmv # Make CLI available in non-interactive shell
nextmv configure \
Expand All @@ -191,6 +201,7 @@ jobs:
nextmv sdk install
- name: Release the apps
if: ${{ env.APPS != '' }}
run: |
export PATH=$PATH:~/.nextmv # Make CLI available in non-interactive shell
python main.py \
Expand Down
28 changes: 14 additions & 14 deletions .nextmv/workflow-configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apps:
description: Get started with Go and Nextmv.
- name: go-highs-knapsack
type: go
app_id: go-highs-knapsack
app_id: knapsack-gosdk
marketplace_app_id: knapsack.gosdk
marketplace_major_version: v1
description: Use Go and HiGHS - knapsack.
Expand Down Expand Up @@ -55,9 +55,9 @@ apps:
description: Use Python and AMPL - facility location.
- name: python-ampl-knapsack
type: python
app_id:
marketplace_app_id:
marketplace_major_version:
app_id: knapsack-ampl
marketplace_app_id: knapsack.ampl
marketplace_major_version: v1
description: Use Python and AMPL - knapsack.
- name: python-ampl-priceoptimization
type: python
Expand All @@ -67,9 +67,9 @@ apps:
description: Use Python and AMPL - price optimization.
- name: python-gurobi-knapsack
type: python
app_id:
marketplace_app_id:
marketplace_major_version:
app_id: knapsack-gurobi
marketplace_app_id: knapsack.gurobi
marketplace_major_version: v1
description: Use Python and Gurobi - knapsack.
- name: python-hello-world
type: python
Expand All @@ -79,25 +79,25 @@ apps:
description: Get started with Python and Nextmv.
- name: python-highs-knapsack
type: python
app_id: python-highs-knapsack
app_id: knapsack-highs
marketplace_app_id: knapsack.highs
marketplace_major_version: v1
description: Use Python and HiGHS - knapsack.
- name: python-ortools-costflow
type: python
app_id: python-ortools-costflow
app_id: cost-flow-ortools
marketplace_app_id: cost.flow.ortools
marketplace_major_version: v1
description: Use Python and OR-Tools - cost flow.
- name: python-ortools-demandforecasting
type: python
app_id: python-ortools-demandforecasting
app_id: demand-forecasting-ortools
marketplace_app_id: dem.forecast.ortools
marketplace_major_version: v1
description: Use Python and OR-Tools - demand forecasting.
- name: python-ortools-knapsack
type: python
app_id: python-ortools-knapsack
app_id: knapsack-ortools
marketplace_app_id: knapsack.ortools
marketplace_major_version: v1
description: Use Python and OR-Tools - knapsack.
Expand All @@ -109,7 +109,7 @@ apps:
description: Use Python and OR-Tools - multi CSV knapsack.
- name: python-ortools-routing
type: python
app_id: python-ortools-routing
app_id: routing-ortools
marketplace_app_id: routing.ortools
marketplace_major_version: v1
description: Use Python and OR-Tools - VRP.
Expand All @@ -127,7 +127,7 @@ apps:
description: Use Python and OR-Tools - shift planning.
- name: python-pyomo-knapsack
type: python
app_id: python-pyomo-knapsack
app_id: knapsack-pyomo
marketplace_app_id: knapsack.pyomo
marketplace_major_version: v1
description: Use Python and Pyomo - knapsack.
Expand All @@ -151,7 +151,7 @@ apps:
description: Use Python and PyOptInterface - knapsack.
- name: python-pyvroom-routing
type: python
app_id: python-pyvroom-routing
app_id: routing-pyvroom
marketplace_app_id: routing.pyvroom
marketplace_major_version: v1
description: Use Python and Pyvroom - VRP.
Expand Down

0 comments on commit a2dce74

Please sign in to comment.