Skip to content

v2: deploy openfn.yaml workspaces with openfn project deploy - #7

Open
midigofrank wants to merge 4 commits into
mainfrom
v2-sync
Open

midigofrank wants to merge 4 commits into
mainfrom
v2-sync

Conversation

@midigofrank

Copy link
Copy Markdown
Collaborator

Short Description

v2 of the deploy action, for Lightning's v2 GitHub sync. It deploys an openfn.yaml workspace with openfn project deploy instead of the legacy config.json + openfn deploy.

Implementation Details

  • Inputs:
    • config_path_input is removed.
    • New project_id_input (required).
    • New endpoint_input, workspace_input and force_input (all optional).
  • Runs openfn project deploy <project_id> --no-confirm, adding --endpoint and --force when those inputs are set.
  • workspace_input is passed as OPENFN_WORKSPACE, so the project can live in a subfolder. It defaults to the repo root.
  • Sets OPENFN_NO_CHECKOUT_AFTER_DEPLOY=false. Sync relies on deploy rewriting .openfn/ (version history and checkout files), which the auto-commit step then commits.
  • Installs @openfn/cli@latest.
  • Rewrote the README for v2. Repos on the old format should stay on @v1.

Release

This needs a v2 tag once merged. v1 stays as it is for legacy config.json repos.

QA Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant