
Write a Dockerfile that describes a Debian image with our build environment set up in it. Write a script that builds and tags the custom image. Set the continuous integration workflow to run on the custom image, pulled from Docker's local image store. Running the examples on the custom image takes the same steps as running them on a development machine, so we no longer gain anything from factoring out the `cargo run --example` steps. That means we can get rid of the `run-examples` action. Since the build environment is now set up ahead of time, we can get rid of the `setup-rust` action too.
5 lines
No EOL
108 B
Bash
Executable file
5 lines
No EOL
108 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# build and tag the Docker image we use for continuous integration
|
|
|
|
docker build . --tag dyna3:ci |