Container to speed up and simplify building in CI that requires tools to be built during the CI process.
- rust
- cargo
- cargo-make
- mdbook
- mdbook-linkcheck
- mdbook-kroki-preprocessor
- mdbook-toc
- mdbook-open-on-gh
- mdbook-regex
- mdbook-admonish
NOTE: Requires the cargo make command of the project to have a 'build-docs-linkcheck' rule
run:
using: 'docker'
image: 'input-output-hk/catalyst-gh-tools:v0.8'
with:
entrypoint: cargo
args: make build-docs-linkcheck
The ./tools_container
subdirectory contains a Docker
file which builds a container containing all the tools we wish to have available for this action.
This container is automatically built by github CI using .github/workflows/build_publish_tools_container.yml
when:
- Push with no tag AND
./tools_container
has been modified:- Image is called
input-output-hk/catalyst-standards:main
- Image is called
- Release created with tag format
v??
where??
is anything.- Image is called
input-output-hk/catalyst-standards:v??
- Latest Image is updated in
input-output-hk/catalyst-standards:latest
- Image is called
The ./Dockerfile
is then used by CI to quickly provide all the tools we might need.
The specific version of the container should always be specified so that updates do not break builds unexpectedly.