Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use pipes on ARM workers

Darko Miletic
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 6, 2025

I have a pipeline for building docker image that has step for x86 and arm

It looks like this

 

pipelines:
custom:
construct:
- step:
name: 'Build x86_64 image'
image: 'atlassian/default-image:4'
runtime:
cloud:
arch: 'x86'
services:
- 'docker'
caches:
- 'docker'
script:
- >-
bash
"$BITBUCKET_CLONE_DIR/build-image"
"${BRANCH:-master}"
"$REPO"
"${AWS_ECR_NAME}-x86_64"
"$BITBUCKET_CLONE_DIR"
"${IMAGE_TAGS:-latest}"
- pipe: 'atlassian/aws-ecr-push-image:2.5.0'
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
IMAGE_NAME: "${AWS_ECR_NAME}-x86_64"
TAGS: "${IMAGE_TAGS:-latest}"
- step:
name: 'Build aarch64 image'
image: 'atlassian/default-image:4'
runtime:
cloud:
arch: 'arm'
services:
- 'docker'
caches:
- 'docker'
script:
- >-
bash
"$BITBUCKET_CLONE_DIR/build-image"
"${BRANCH:-master}"
"$REPO"
"${AWS_ECR_NAME}-aarch64"
"$BITBUCKET_CLONE_DIR"
"${IMAGE_TAGS:-latest}"
- pipe: 'atlassian/aws-ecr-push-image:2.5.0'
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
IMAGE_NAME: "${AWS_ECR_NAME}-aarch64"
TAGS: "${IMAGE_TAGS:-latest}"

 

I am getting this error on aarch64 step

 

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested exec /usr/local/bin/python3: exec format error

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events