GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Implement Github Workflow generation for building and deploying a function to a k8 cluster. · Issue #3256 · knative/func

Implement Github Workflow generation for building and deploying a function to a k8 cluster. #3256

New issue
Copy link
New issue
Copy link
Closed
#3572
Closed
Implement Github Workflow generation for building and deploying a function to a k8 cluster.#3256
#3572
Copy link
Assignees
twoGiants
Labels
kind/enhancementFeature additions or improvements to existing

Description

@twoGiants
twoGiants
opened on Nov 29, 2025
Issue body actions

Summary

Extend the func CLI with a func config ci command that generates a GitHub Actions workflow for building and deploying a Knative function to a Kubernetes cluster. The command creates a .github/workflows/func-deploy.yaml in the function's repository.

The generated workflow should include checkout, Kubernetes context setup, optional container registry login, func CLI installation via knative-func-action, and func deploy. It should support both local builds on the GitHub runner and remote on-cluster builds via Tekton.

Configurable via CLI flags:

  • --branch -- target branch (defaults to current branch)
  • --platform -- CI platform selection (currently GitHub only)
  • --remote -- remote on-cluster build via Tekton
  • --registry-login -- adds container registry login step
  • --self-hosted-runner -- uses self-hosted runner instead of ubuntu-latest
  • --test-step -- adds a language-specific test step (go, node, typescript, python, quarkus)
  • --workflow-name -- custom workflow name
  • --workflow-dispatch -- adds manual trigger
  • --force -- overwrites existing workflow files
  • --verbose -- prints full configuration after generation
  • Custom secret/variable names for kubeconfig, registry credentials

The runtime-aware builder selection should pick the correct builder per language (host, pack, or s2i) for local and remote builds.

The feature is gated behind the FUNC_ENABLE_CI_CONFIG environment variable.

The workflow generation should live in pkg/ci/github/ so it can be used as a library by external consumers.

Resources

  • Sample workflow: https://github.com/functions-dev/templates/blob/main/.github/workflows/invoke-all.yaml
  • func GitHub action: https://github.com/functions-dev/action

Pull Requests

  1. Fix typos in comments and documentation across the codebase. #3257
  2. Refactor: extract common loader/saver interfaces (Github Workflow generation prep). #3262
  3. Add func config ci command skeleton. #3266
  4. Feature: Implement GitHub workflow generation for func config ci. #3295
  5. Feature: Add registry login to CI workflows. #3297
  6. Feature: Add remote build and workflow dispatch options to CI workflows. #3128
  7. Feature: Default branch and path flags intelligently. #3371
  8. Feature: Add --platform flag for CI/CD platform selection. #3379
  9. Feature: Protect existing workflow files from accidental overwrites. #3407
  10. Feature: Add user messages to config ci. #3457
  11. Feature+Test: Add runtime-aware builder config and Config CI e2e tests. #3479
  12. Refactor: Move CI workflow generation from cmd/ci to pkg/ci/github. #3572

Activity

Next
  1. twoGiants commented on Nov 29, 2025

    @twoGiants
    twoGiants
    on Nov 29, 2025
    ContributorAuthor
    More actions

    /assign

  2. knative-prow
    assigned
    twoGiants
    on Nov 29, 2025
  3. twoGiants commented on Nov 29, 2025

    @twoGiants
    twoGiants
    on Nov 29, 2025
    ContributorAuthor
    More actions

    /kind enhancement

  4. knative-prow
    added
    kind/enhancementFeature additions or improvements to existing
    on Nov 29, 2025
  5. twoGiants
    added 5 commits that reference this issue on Nov 29, 2025

    chores: fix typos

    0b73bed

    chores: fix typos

    a2c8b23

    chores: fix typos

    d4ccf48

    refactor: extract common loader/saver interfaces

    787aa4c

    refactor: extract common loader/saver interfaces

    a62ee65
  6. knative-prow
    added 2 commits that reference this issue on Dec 1, 2025

    chores: fix typos (#3257)

    7f7e476

    refactor: extract common loader/saver interfaces (#3262)

    33702b0
  7. twoGiants
    added 4 commits that reference this issue on Dec 3, 2025

    feat: add config ci command skeleton

    c63913f

    feat: add config ci command skeleton

    77e77e3

    feat: add config ci command skeleton

    4ce76a1

    feat: add config ci command skeleton

    baab41d
  8. 44 remaining items

  9. twoGiants
    added 6 commits that reference this issue on Mar 10, 2026

    feat: add runtime-aware builder config

    577fb94

    feat: add runtime-aware builder config

    7f3ba11

    feat: add runtime-aware builder config

    31a683b

    feat: add runtime-aware builder config

    3d93b57

    feat: add runtime-aware builder config

    92330f9

    feat: add runtime-aware builder config

    675cd38
  10. knative-prow
    added a commit that references this issue on Mar 16, 2026

    feat: add runtime-aware builder config (#3479)

    17ad5e9
  11. twoGiants
    added 4 commits that reference this issue on Apr 2, 2026

    feat: add runtime-aware builder config

    de169d6

    feat: add runtime-aware builder config

    40d337d

    refactor: move CI workflow to pkg/ci/github

    9ea2b6e

    refactor: move CI workflow to pkg/ci/github

    2a954f6
  12. twoGiants
    added a commit that references this issue on May 14, 2026

    refactor: move CI workflow to pkg/ci/github

    34a0cd6
  13. twoGiants
    added a commit that references this issue on May 24, 2026

    refactor: move CI workflow to pkg/ci/github

    fa32ff0
  14. knative-prow
    closed this as completedin #3572on Jun 2, 2026
  15. knative-prow
    added a commit that references this issue on Jun 2, 2026

    Refactor: Move CI workflow generation from `cmd/ci` to `pkg/ci/github…

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

Metadata

Metadata

Assignees

  • @twoGiants
    twoGiants

Labels

kind/enhancementFeature additions or improvements to existing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.