Build from verifiable source
To build from a verifiable source, options are:
- Use the
ecloud compute build submitcommand to submit a verifiable build from a GitHub source. - Specify the
--verifiableoption or selectYeswhen prompted when deploying or upgrading using theecloud compute deployorupgradecommands..
Submit from GitHub source
To submit a verifiable build from a GitHub source, specify the required options or supply when prompted:
--repo(ECLOUD_BUILD_REPO)--commit(ECLOUD_BUILD_COMMIT)--dockerfile(ECLOUD_BUILD_DOCKERFILE, default isDockerfile)--context(ECLOUD_BUILD_CONTEXT, default is.)--dependencies sha256:...(repeatable; prompt supports comma-separated)--build-caddyfile(ECLOUD_BUILD_CADDYFILE) (optional)--no-follow--json
For example:
ecloud compute build submit --repo https://github.com/myorg/myapp --commit abc123...
ecloud compute build submit --repo https://github.com/myorg/myapp --commit abc123... --dependencies sha256:def456...
ecloud compute build submit --repo https://github.com/myorg/myapp --commit abc123... --build-caddyfile Caddyfile
ecloud compute build submit --repo https://github.com/myorg/myapp --commit abc123... --no-follow
Once built and verified, the image can be specified as a prebuilt image when deploying or upgrading.
Submit when deploying or upgrading
To submit when deploying or upgrading, specify the --verifiable option for the ecloud compute app command, or select
Yes when prompted.
When deploying or upgrading, specify a GitHub source using the --build-context, --build-dependencies, and --build-dockerfile options,
or specify a prebuilt verifiable image using the --image-ref option.
Submitting builds with dependencies
To specify prebuilt dependencies to include in a verifiable build, use the --dependencies option for ecloud compute build,
ecloud compute app deploy or ecloud compute app upgrade.
The EigenCompute TLS and KMS clients do not need to be specified as dependencies because they are prebuilt and the digests included in all EigenCompute applications.
For more information on dependencies in verifiable builds, refer to Verifiable Builds.