Skip to content

Latest commit

 

History

History
79 lines (62 loc) · 4.32 KB

release.md

File metadata and controls

79 lines (62 loc) · 4.32 KB

Falco Website Release Process

The release process of the falco.org is automated by using netlify. Each commit merged into the master branch will be automatically deployed to falco.org.

You can find the last deploy status by clicking on this Netlify Status badge.

However, the above workflow only applies to the latest version of the website that refers to the latest released version of Falco. Starting from version Falco v0.27.0, we introduced a versioning mechanism for our website. Please follow the below instruction when switching to a new minor version (according to the semantic versioning definition).

Documentation versioning

We archive a snapshot of the whole website every time a new Falco minor version comes out.

Each snapshot will be published to a falco.org subdomain named by the Falco version without the patch number (e.g., Falco version v0-26.falco.org refers to the latest available patch version of Falco series v0.26.x).

You can find the first-ever archived snapshot at v0-26.falco.org. It refers to Falco v0.26.2.

Finally, once a snapshot for the previous version has been created, you need to configure the main website to point to the newest Falco minor version.

Create a new website snapshot

The following instructions assume v0.x.y is the version to be archived.

  1. Create the new v0.x branch from the current master branch.

  2. Configure the branch deploy control on Netlify by adding the newly created branch v0.x.

  3. Within the v0.x branch, edit the versions/params.yaml file:

    • Set archived_version to true,
    • Make sure version is equal to v0.x.y,
    • Update the YAML block referring to v0.x.y (i.e., the previous version) as following:
    versions:
    
      - fullversion: v0.x.y
        version: v0.x
        githubbranch: 0.x.y
        docsbranch: v0.x
        url: https://v0-x.falco.org/
    • Finally, commit and push to v0.x.
  4. Once the Netlify branch build is done (see the Deploys section), add a new branch subdomain on Netilify by selecting the branch deploy configured in the previous step.

  5. Open a PR in falcosecurity/test-infra to add v0.x as protected branch to the prow/config.yaml, for example:

    falco-website:
      branches:
        master:
          protect: true
        v0.26:
          protect: true
        ...
        v0.x:
          protect: true

Bump the version on the current website

N.B. Do not update the minor version until a snapshot for the previous one has been created!

The following instructions assume v0.X.Y is the new version and v0.x.y is the previous already-archived version.

  1. Open a PR in the falcosecurity/falco-website repo to modify the versions/params.yaml file on the master branch:
    • Make sure the version field is set to v0.X.Y (i.e., the new version).
    • Insert the following config block for the new version as the first entry of the list, right after the versions: line. Make sure the indentation is right (it should align with the adyacent blocks) and tabs should be avoided.
      - fullversion: v0.X.Y
        version: vX.Y
        githubbranch: master
        docsbranch: master
        url: https://falco.org/
    • Update the current second YAML block refering to v0.x.y (i.e., the previous version) as following:
      - fullversion: v0.x.y
        version: v0.x
        githubbranch: 0.x.y
        docsbranch: v0.x
        url: https://v0-x.falco.org/
  2. Once the PR gets approved and merged, the website will be updated shortly, and no other actions are needed.