acoustic-carpenter-78188
12/28/2022, 10:34 PMFROM --platform=${BUILDPLATFORM} golang:1.19.1-bullseye AS flytebuilder
• using ENV GOARCH=${TARGETARCH}
.
For building an arm64 image on CI, these will be:
• FROM --platform=linux/amd64 golang:1.19.1-bullseye AS flytebuilder
• ENV GOARCH=arm64
Build times for arm64
and amd64
images are roughly the same now.
(2) Removing caching from image build steps:
cache-from: type=gha
cache-to: type=gha,mode=max
There was no indication that layer caches were being leveraged, likely due to our complex multi-stage Dockerfiles, but the cache export step is an expensive one, taking up to 75% of the time for some image builds. Even if we were to fix our pipelines to correctly and efficiently use caching, our build times are short enough such that caching image layers would not provide any substantial benefit.
flyteorg/flyte
✅ All checks have passed
11/11 successful checksacoustic-carpenter-78188
12/28/2022, 10:34 PMacoustic-carpenter-78188
12/28/2022, 10:53 PM