I'm doing multi-platform builds with buildx and would like to know if there is a way to determine what platform is currently being build so I can avoid certain steps for certain environments.
For example, something like...
# No DOSEMU outside amd64RUN if [ "$DOCKER_PLATFORM" = "amd64" ]; then \ apt install dosemu \ fi