My Phoenix app usually is deployed via a github action.
name: Deploy to Fly Staging
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy proxy
runs-on: ubuntu-latest
steps:
# This step checks out a copy of your repository.
- uses: actions/checkout@v2
# This step runs `flyctl deploy`.
- uses: superfly/flyctl-actions@master
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
with:
args: "deploy -a old-field-8878 --remote-only"
Have had very few problems with this. Sometimes it fails with a random error. Usually a rerun works, or worst case I destroy the builder app and try again and it works. This time I destroyed the builder app (fly destroy fly-builder-divine-breeze-779), and now I keep getting this error:
“Error failed to fetch an image or build from source: error connecting to docker: Mounts source volume “vol_” does not exist”
Happens both on the github action and if I try deploy locally. Seems busted.
I have this issue too in a GitLab runner. It happens with and without the --remote-only flag. Specifically, I run:
fly deploy --env PRODUCTION=true --region ams
inside an Alpine-based docker.
EDIT: It works locally so it’s a GitLab/Docker issue.
EDIT2: For sure not. Exactly the same code now runs (clicked re-run job in CI). It’s a Fly.io issue.