Mapepire-IBMi / mapepire-server

Server-side support for Code for IBM i
GNU General Public License v3.0
24 stars 8 forks source link

Deploy server to `OSSBUILD` on release #42

Closed SanjulaGanepola closed 2 months ago

SanjulaGanepola commented 2 months ago

Changes

Automatically deploy mapepire server to OSSBUILD on release. This will help ensure that our client test workflows are running against the latest release.

@ThePrez @worksofliam I don't have access to the settings, so can you add the following environment secrets:

jonnyz32 commented 2 months ago

I see right now this script runs on workflow_dispatch. Can we make it so the new server is deployed to OSSBUILD and started whenever we merge into the main branch?

ThePrez commented 2 months ago

I see right now this script runs on workflow_dispatch. Can we make it so the new server is deployed to OSSBUILD and started whenever we merge into the main branch?

I had the same thought. We could (should?) deploy the releases to the default port and main branch onto a separate port and install dir.

I would normally write a separate action for that, but how hard is it to condition this one? Probably not worth the trouble....

SanjulaGanepola commented 2 months ago

Good idea. I put it in both workflows since it was the quickest solution. Can look into moving it into one later on. Here is the updated strategy:

For Release:

  1. Downloads to /opt/download/release
  2. Installs to /opt/mapepire/release
  3. Start server using service commander -> mapepire (Mapepire Server) on port 8076

For Development:

  1. Downloads to /opt/download/dev
  2. Installs to /opt/mapepire/dev
  3. Start server using service commander -> mapepired (Mapepire Development Server) on port 8075

Other Fixes: