Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: staging build and test (#4432)
* Addresses #3753 New workflows added to automate the build and test of releases using the new staging environment. No changes made to current process to ensure we can keep using it. Build & test of packaging Packages built to staging in S3 bucket: https://fluentbit-staging.s3.amazonaws.com We then verify the packages using kitchen-dokken to spin up OS images as containers, install the relevant RPM/Deb and check the service is properly running then. We are testing that the packaging process is correct. Containers build to Github Container Registry, gchr.io, using multi-arch manifests. Container tests then verify each architecture runs locally as well as a simple Helm deployment on KIND. All package and container build definitions brought into the repo from external sources - containers were in this repo and packages were not so that is now identical plus having them together makes it a lot easier to manage and use. Security Trivy and Dockle scanning added - ignores current failures so these should be reviewed and addressed as needed. Hadolint and Shellcheck really should be used too but this can be a separate PR. Cosigning of container images if a key is provided, and using the experimental keyless option too. GPG signing of binary packages as well as normal. Additional work Initial promotion from staging to release provided using a new release environment for approval - this needs creating. Initial multi-arch container image definition and workflow also added. Follow up PRs to improve testing, build on self-hosted and cover the promotion to release process. Trying to prevent a big bag and reduce review overhead. Infra updates Create release and staging environments. Create the following secrets: AWS_S3_BUCKET_STAGING AWS_S3_BUCKET_RELEASE AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY COSIGN_PRIVATE_KEY COSIGN_PASSWORD - optional if private key does not require COSIGN_PUBLIC_KEY FLUENTBITIO_HOST FLUENTBITIO_USERNAME FLUENTBITIO_SSHKEY GPG_PRIVATE_KEY We can actually start breaking these secrets up into the two environments. Signed-off-by: Patrick Stephens <[email protected]>
- Loading branch information