near-daos / sputnik-dao-contract

Smart contracts for https://app.astrodao.com
https://astrodao.com/
MIT License
108 stars 81 forks source link

Official compiled wasm & CI/CD #132

Closed TrevorJTClarke closed 2 years ago

TrevorJTClarke commented 2 years ago

To ensure audits, deploys & local builds are all reproducible, create a CI/CD pipeline that utilizes a docker build. This will ensure no user paths enter a build, destroying reproducibility.

TrevorJTClarke commented 2 years ago

https://hub.docker.com/r/nearprotocol/contract-builder

swfsql commented 2 years ago

Not related to docker, but this contract has an example of Github Actions on how to compile and share the wasm binaries, in case this is also wanted: https://github.com/nearcomponents/contract-version-example/releases

TrevorJTClarke commented 2 years ago

@swfsql excellent - much better approach.

swfsql commented 2 years ago

@TrevorJTClarke Cool! in this way by making a tag those actions should make some release files

I'll make a PR containing some small improvements that we have observed