Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Failing to run bitbucket pipeline for deployment to fly.io

Tino Rachui
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!
June 27, 2024

Hello,

 

I'm trying to setup and run an bitbucket pipeline to deploy to fly.io. This is how my bitbucket-pipelines.yml looks like:

 

image: flyio/flyctl

definitions:
steps:
-step: &deploy-staging
name: Deploy the staging BFF to fly.io
script:
- flyctl deploy --remote-only -c staging.fly.toml -t ${FLY_DEPLOY_STAGING_TOKEN}
pipelines:
branches:
staging:
- step: *deploy-staging
When I execute it I get the following error:
"failed to create containerd task: failed to create shim task: the file /bin/sh was not found: unknown"
Has anybody a solution for the given image (flyio/flyctl) or do I have to create my own docker image to fix this issue?
Thanks in advance
Tino

 

1 answer

0 votes
Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 29, 2024

Hi @Tino Rachui ,

 

I don't think you'll be able to use the flyctl image as it doesn't have sh inside it. Instead, you can use a golang image and flyctl CLI as described here - https://fly.io/blog/continuous-deployment-with-gitlab/

 

HTH!

 

~ Hariharan

Suggest an answer

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

Atlassian Community Events