Error: failed to fetch an image or build from source: error building: unauthenticated: Invalid token
error reporting health: unauthenticated: Invalid tokenerror reporting health: unauthenticated: Invalid tokenerror reporting health: unauthenticated: Invalid tokenerror reporting health: unauthenticated: Invalid token
This started happening out of nowhere.
What is wrong?
CI Job:
deploy-backend:
name: Deploy Backend
needs: [changes, test]
if: ${{ needs.changes.outputs.backend == 'true' }}
runs-on: ubuntu-latest
concurrency: deploy-backend-group
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Set Sentry build args
id: sentry_args
run: |
if [[ ${{ github.ref }} == 'refs/heads/main' ]]; then
echo "args=--build-arg SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} --build-arg SENTRY_ORG=${{ secrets.SENTRY_ORG }} --build-arg SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }} --build-arg SENTRY_RELEASE=${{ github.sha }}" >> $GITHUB_OUTPUT
else
echo "args=" >> $GITHUB_OUTPUT
fi
- name: Deploy Backend to Fly.io
run: |
flyctl deploy --remote-only \
--build-arg TURBO_TEAM=${{ secrets.TURBO_TEAM }} \
--build-arg TURBO_TOKEN=${{ secrets.TURBO_TOKEN }} \
--build-arg SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} \
--build-arg SENTRY_ORG=${{ secrets.SENTRY_ORG }} \
--build-arg SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }} \
--build-arg SENTRY_RELEASE=${{ github.sha }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}