nullstone-io / nullstone

Nullstone is a customizable developer platform launched on your cloud accounts.
https://nullstone.io
MIT License
39 stars 1 forks source link

Deploy from the UI #150

Open BSick7 opened 1 year ago

BSick7 commented 1 year ago

Overview

Currently, developers can deploy their code in two ways:

  1. Pushing a commit to Git that triggers auto-build/deploy
  2. Issuing nullstone deploy/launch through the CLI

These are helpful, but there are scenarios where a developer wants to deploy directly from the UI.

  1. Roll back to a previous version.
  2. Auto-build is disabled, but a user wants to pick a commit from Git to build and deploy.

How will it work?

To support both scenarios, this new functionality would allow deployment from activity screen and app page.

  1. On the activity screen for code deployments, a user has the ability to deploy with a button labeled "Deploy this code".
  2. On the app screen, a user has a new drop-down button with the following options:
    • Deploy from commit
    • Deploy previous version

Deploy from commit

This option would show a dialog listing the available commits for the connected repository. To keep familiarity, this dialog should be similar to the page in GitHub for listing commits. (Note the ability to switch branches. This allows for simpler display of commits without constraining to master)

Image

Deploy previous version

This option would show a dialog listing all images or artifacts previously pushed to the app module. Since these artifacts were previously built, this would kick off a deploy-only workflow.

Considerations

If auto-build is not enabled, we still would like to perform this deployment

Should "deploy this commit" also update IaC based on the commit?