Repository: celestiaorg/celestia-app

Issue:
/bin/celestia-appd: cannot execute binary file: Exec format error on arm64
### Summary of Bug

The celestia-appd binary in the arm64 Docker image is a amd64 binary and not arm64.

ghcr.io/celestiaorg/celestia-app:v4.0.1-mocha@sha256:a31ef1f64224975d86dfe8caa31693d5f535d94a3c42ff769850d87db8778622

I ran a few command the confirm it with the result below.

```text
+ bash --version
GNU bash, version 5.2.21(1)-release (aarch64-alpine-linux-musl)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
+ celestia-appd --version
/bin/bash: line 1: /bin/celestia-appd: cannot execute binary file: Exec format error
+ od -x -N20 /bin/bash
0000000 457f 464c 0102 0001 0000 0000 0000 0000
0000020 0003 00b7
0000024
+ od -x -N20 /bin/celestia-appd
0000000 457f 464c 0102 0001 0000 0000 0000 0000
0000020 0002 003e
0000024
```

So /bin/bash architecture is 0x00b7 (Arm 64) and /bin/celestia-appd architecture is 0x003e (Amd 64)

https://en.wikipedia.org/wiki/Executable_and_Linkable_Format


### Version

v4.0.1-mocha

### Steps to Reproduce


Here is the container definition for kubernetes pod

```yaml
        - name: validate
          image: ghcr.io/celestiaorg/celestia-app:v4.0.1-mocha@sha256:a31ef1f64224975d86dfe8caa31693d5f535d94a3c42ff769850d87db8778622
          command:
            - '/bin/bash'
            - '-cx'
            - 'bash --version; celestia-appd --version; od -x -N20 /bin/bash; od -x -N20 /bin/celestia-appd'
```

Discussion:
@rootulp: Thanks for reporting @arcenik! Can you please help us understand if this issue is new for v4.x.x releases or also existed on v3.x.x releases? @chatton: Ah, it looks like we are explicitly passing `amd64` [here](https://github.com/celestiaorg/celestia-app/blob/33298ccb942e0ea1e9704f2f2dbdddcb3edc7562/.github/workflows/docker-build-publish.yml#L40) and in the re-usable workflow, it is using these same build args for both platforms `platforms: linux/arm64,linux/amd64`

Solution patch:
diff --git a/.github/workflows/docker-build-publish.yml b/.github/workflows/docker-build-publish.yml
index 68a54af7..7a64c189 100644
--- a/.github/workflows/docker-build-publish.yml
+++ b/.github/workflows/docker-build-publish.yml
@@ -37,7 +37,6 @@ jobs:
       dockerfile: docker/multiplexer.Dockerfile
       checkout_ref: ${{ github.event.inputs.ref }}
       packageName: celestia-app
-      buildArgs: "TARGETOS=linux TARGETARCH=amd64"
     secrets: inherit
 
   docker-txsim-build:
diff --git a/go.mod b/go.mod
index 0c26a232..3c49954d 100644
--- a/go.mod
+++ b/go.mod
@@ -306,5 +306,5 @@ replace (
 	// goleveldb: canonical version
 	github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
 	// celestia-core(v0.34.x): used for multiplexing abci v1 requests
-	github.com/tendermint/tendermint => github.com/celestiaorg/celestia-core v1.45.0-tm-v0.34.35
+	github.com/tendermint/tendermint => github.com/celestiaorg/celestia-core v1.52.0-tm-v0.34.35
 )
diff --git a/go.sum b/go.sum
index 44f40346..9aa1bb1a 100644
--- a/go.sum
+++ b/go.sum
@@ -352,8 +352,8 @@ github.com/bytedance/sonic/loader v0.2.4/go.mod h1:N8A3vUdtUebEY2/VQC0MyhYeKUFos
 github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
 github.com/celestiaorg/bittwister v0.0.0-20231213180407-65cdbaf5b8c7 h1:nxplQi8wrLMjhu260RuigXylC3pWoDu4OVumPHeojnk=
 github.com/celestiaorg/bittwister v0.0.0-20231213180407-65cdbaf5b8c7/go.mod h1:1EF5MfOxVf0WC51Gb7pJ6bcZxnXKNAf9pqWtjgPBAYc=
-github.com/celestiaorg/celestia-core v1.45.0-tm-v0.34.35 h1:T21AhezjcByAlWDHmiVbpg743Uqk/dqBzJkQsAnbQf8=
-github.com/celestiaorg/celestia-core v1.45.0-tm-v0.34.35/go.mod h1:fQ46s1hYFTGFBsHsuGsbxDZ720ZPQow5Iyqw+yErZSo=
+github.com/celestiaorg/celestia-core v1.52.0-tm-v0.34.35 h1:iU2igosCxYKzEUi85u3YqNslIO+rCXtx4GKAHUzxrDQ=
+github.com/celestiaorg/celestia-core v1.52.0-tm-v0.34.35/go.mod h1:SI38xqZZ4ccoAxszUJqsJ/a5rOkzQRijzHQQlLKkyUc=
 github.com/celestiaorg/celestia-core v1.53.0-tm-v0.38.17 h1:AHjnWwPoOFH5zr+aPqdWkF1CutP1ynVEOGOuW1/8iq8=
 github.com/celestiaorg/celestia-core v1.53.0-tm-v0.38.17/go.mod h1:PiU80T/t0z8FPlz7DRZgvrBux0jJiqxFi9lNBFdGUps=
 github.com/celestiaorg/cosmos-sdk v1.29.1-sdk-v0.50.12 h1:EWJIBTMB9H2KFMqmNB22KvgqvAObqcToJbAdPCM+LBw=



Test patch:
diff --git a/test/docker-e2e/go.mod b/test/docker-e2e/go.mod
index 9fd96eda..195b66ac 100644
--- a/test/docker-e2e/go.mod
+++ b/test/docker-e2e/go.mod
@@ -272,12 +272,12 @@ replace (
 	github.com/celestiaorg/celestia-app/v4 => ../..
 	// celestia-core: v1.53.0-tm-v0.38.17
 	github.com/cometbft/cometbft => github.com/celestiaorg/celestia-core v1.53.0-tm-v0.38.17
-	// cosmos-sdk: v1.29.0-sdk-v0.50.12
+	// cosmos-sdk: v1.29.1-sdk-v0.50.12
 	github.com/cosmos/cosmos-sdk => github.com/celestiaorg/cosmos-sdk v1.29.1-sdk-v0.50.12
 
 	github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.2
 	// goleveldb: canonical version
 	github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
 	// celestia-core(v0.34.x): used for multiplexing abci v1 requests
-	github.com/tendermint/tendermint => github.com/celestiaorg/celestia-core v1.45.0-tm-v0.34.35
+	github.com/tendermint/tendermint => github.com/celestiaorg/celestia-core v1.52.0-tm-v0.34.35
 )