Skip to content

Commit

Permalink
Run QEMU if image is based on arm
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Jul 11, 2024
1 parent 7768930 commit 44ac1af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 44ac1af

Please sign in to comment.