diff --git a/.github/workflows/build-proxy.yml b/.github/workflows/build-proxy.yml index 91da3fe0..02edeb23 100644 --- a/.github/workflows/build-proxy.yml +++ b/.github/workflows/build-proxy.yml @@ -37,6 +37,14 @@ jobs: # Enables pipefail shell: bash + - name: Get CPU architecture for Docker image + run: echo IMAGE_ARCH=$(docker image inspect --format json aerospike.jfrog.io/docker/aerospike/aerospike-proxy-private:${{ env.LATEST_TAG }} | | jq -r ".[0].Architecture") >> $GITHUB_ENV + shell: bash + + - name: If needed, use QEMU to emulate ARM + if: ${{ env.IMAGE_ARCH == 'arm64' }} + uses: docker/setup-qemu-action@v3 + - name: Run Aerospike Proxy on latest tag run: docker run -d --name aerospike-proxy -p 4000:4000 aerospike.jfrog.io/docker/aerospike/aerospike-proxy-private:${{ env.LATEST_TAG }}