prometheus_wireguard_exporter/.github/workflows
Quentin McGaw 3a74f8b5b0
Multi arch Dockerfile and CI (#63)
* Modify Dockerfile
- Use rustup from Docker image
- Give up on cross compilation (ring issue)
- Remove useless duplicate cargo install step
- No need to specify target as it is built statically for the docker platform targeted
- Shorten binary path output for shorter COPY

* Github Actions to build for all ARM as well

* Remove unneded musl-dev

* Adapt build for all platforms
- Use Debian based Rust for compilation
- Cross compile on build platform
- Compile static binaries using musl
- Set variables correctly for all Docker supported platforms
- Note: ppc64le, s390x and riscv64 do not support the Rust standard lib
- Persist target platform variables through files
- Define linkers in .cargo/config
- Cache dependencies properly for target platform
- Scratch stage to test the binary for target platform

* Add 386 arch to CI

* Use buildkit for docker build

* Only build for amd64 on branches

* Fix dependencies caching

* Split dependencies fetching and compilation

* Documentation

* Build for all architectures on branch

* Add STATIC build argument

* Documentation
2021-07-08 09:17:51 +02:00
..
build.yml Multi arch Dockerfile and CI (#63) 2021-07-08 09:17:51 +02:00
buildx-branch.yml Multi arch Dockerfile and CI (#63) 2021-07-08 09:17:51 +02:00
buildx-latest.yml Multi arch Dockerfile and CI (#63) 2021-07-08 09:17:51 +02:00
buildx-release.yml Multi arch Dockerfile and CI (#63) 2021-07-08 09:17:51 +02:00
dockerhub-description.yml Docker Hub description sync 2020-08-31 20:53:11 -04:00
rust.yml Added github action 2020-05-09 16:54:48 +02:00