Skip to content

Add code-only build support#710

Open
Jaytee-fn wants to merge 2 commits intomasterfrom
PR4-code-only-fn-build
Open

Add code-only build support#710
Jaytee-fn wants to merge 2 commits intomasterfrom
PR4-code-only-fn-build

Conversation

@Jaytee-fn
Copy link
Copy Markdown
Contributor

The change adds local build support for code-only functions.

This PR introduces a code-only build path that packages local function source into a zip archive instead of performing the traditional container image build flow.

The PR -

  • detect 'code_only: true' in 'fn build'
  • validate required local tooling before packaging
  • create a local archive named:
    • ..zip
  • bypass the legacy image/container-engine build path for code-only functions
  • apply runtime-specific archive layout behaviour for code-only packaging

Validation

Build a code-only function
fn build --working-dir /path/to/code-only-function

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