DEV: Remove use of `--squash` flag and switch to buildx (#743)
authorAlan Guo Xiang Tan <gxtan1990@gmail.com>
Mon, 16 Oct 2023 02:41:05 +0000 (10:41 +0800)
committerGitHub <noreply@github.com>
Mon, 16 Oct 2023 02:41:05 +0000 (10:41 +0800)
commit0c93b2207d22b9de69b503460dc269f8b33935c2
tree6a81416920d695021ff2bda8b3689e312f467dd8
parent246f03b46100dc42b588b6a53b70312b8149ad70
DEV: Remove use of `--squash` flag and switch to buildx (#743)

Why this change?

In CI, we are seeing the following warning message:

```
WARNING: experimental flag squash is removed with BuildKit. You should squash inside build using a multi-stage Dockerfile for efficiency.
```

Basically, the `--squash` flag has not been working for quite some time
and is redundant.

What does this change do?

* This change removes the use of the `--squash` flag.

* This change uses the `buildx` tool in `auto_build.rb` as we prepare to
  build images for multiple platforms.
.github/workflows/build.yml
image/auto_build.rb