Intro

    It is recommended to use the binary for building and deploying your functions whether that is to Kubernetes or Docker Swarm.

    • Build only:
    • Build only & push:
    • To combine build, push and deploy:

    You can also use —parallel or / —filter when you have multiple functions in your stack.yml file.

    • The flag

    The faas-cli build command invokes the docker CLI with the various flags and parameters required. If you want to use an alternative builder you can use the —shrinkwrap flag to generate a folder named which can then be used with any other container builder such as or Kaniko.

    GitLab

    GitLab is both a source-control management system and a CI tool.

    You can find a pipeline example on the .

    For GitHub you can build with any suitable CI tool such as:

    Git examples with Jenkins Pipeline

    Examples with Docker-in-Docker:

    OpenFaaS Cloud can integrate with a public GitHub account or organisation or self-hosted GitLab instance to provide automatic CI/CD without any additional maintenance.

    See also: OpenFaaS Cloud

    GitHub Actions

    • by Lucas Roesler