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:
This worked for me.
# Prerequisites: $FLY_API_TOKEN
image: atlassian/default-image:5
pipelines:
branches:
main:
- step:
name: Deploy
deployment: Production
image: golang:1.26
script:
- apt-get update -qq && apt-get install -y curl
- curl -L https://fly.io/install.sh | sh
- export FLYCTL_INSTALL="/root/.fly"
- export PATH="$FLYCTL_INSTALL/bin:$PATH"
- flyctl version
- flyctl deploy --remote-only --debug --verbose
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.