LoginSignup
1
0

More than 1 year has passed since last update.

GitHub ActionsからFly.ioにデプロイしようとして失敗する場合の解決方法

Last updated at Posted at 2023-01-23

Remixで提供されているIndie Stackdeploy.ymlと同じ設定内容で、GitHub ActionsからFly.ioにデプロイ使用したら次のようなエラーが発生してDeploy Productionのステップで失敗しました。

Error failed to fetch an image or build from source: Could not find image "registry.fly.io/..."

調べてみると、Kent C. Dodds本人が2023年1月19日にFly.ioのフォーラムに投稿していました。

I’ve had this happen twice in a row. I get this error during my deploy step of my GitHub action:
Searching for image 'registry.fly.io/kcd:main-3545aab8e426caa832abb6b7439a843a20e75ee0' remotely...
Error failed to fetch an image or build from source: Could not find image "registry.fly.io/kcd:main-3545aab8e426caa832abb6b7439a843a20e75ee0"

そしてこの問題の解決方法ですが、Set up Docker Buildxの部分で、version: v0.9.1を設定すると解決します。

- name: 🐳 Set up Docker Buildx
    uses: docker/setup-buildx-action@v2
    with:
      version: v0.9.1

原因としては、GitHubがUbuntuランナーを更新したため、BuildKitのバージョンが0.9.1から0.10.0にアップデートされてしまったことに由来するそうです。そのため根本的な解決に至るまでは、前のバージョンの0.9.1を明示的に指定することで問題を解決することが推奨されています。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0