GitHub Actions, Laravel 11 Sail problems

Trying to create GitHub Actions to deploy a Laravel 11 app running Laravel Sail. Almost all tasks run good, but at this point, an error occurs and I can’t find the solution.
Have created the docker image and pushed to DockerHub ok.
The app runs goos at my local machine.
Here is the YAML file at the .gitignore/workflows directory:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>name: CI/CD Pipeline
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: List files in runtimes directory
run: ls -la ./vendor/laravel/sail/runtimes/8.3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: ./vendor/laravel/sail/runtimes/8.3/Dockerfile
push: true
tags: marcellopato/webroker:latest
build-args: |
WWWGROUP=1000
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy to EC2
uses: appleboy/[email protected]
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_KEY }}
port: ${{ secrets.EC2_PORT }}
script: |
docker pull marcellopato/webroker:latest
docker stop webroker || true
docker rm webroker || true
docker run -d --name webroker -p 80:8000 marcellopato/webroker:latest
</code>
<code>name: CI/CD Pipeline on: push: branches: - main jobs: build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.2' - name: Install Composer dependencies run: composer install --no-interaction --prefer-dist --optimize-autoloader - name: List files in runtimes directory run: ls -la ./vendor/laravel/sail/runtimes/8.3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker image uses: docker/build-push-action@v3 with: context: . file: ./vendor/laravel/sail/runtimes/8.3/Dockerfile push: true tags: marcellopato/webroker:latest build-args: | WWWGROUP=1000 deploy: runs-on: ubuntu-latest needs: build steps: - name: Checkout code uses: actions/checkout@v3 - name: Deploy to EC2 uses: appleboy/[email protected] with: host: ${{ secrets.EC2_HOST }} username: ${{ secrets.EC2_USER }} key: ${{ secrets.EC2_KEY }} port: ${{ secrets.EC2_PORT }} script: | docker pull marcellopato/webroker:latest docker stop webroker || true docker rm webroker || true docker run -d --name webroker -p 80:8000 marcellopato/webroker:latest </code>
name: CI/CD Pipeline

on:
 push:
 branches:
  - main

jobs:
 build:
 runs-on: ubuntu-latest

steps:
  - name: Checkout code
    uses: actions/checkout@v3

  - name: Setup PHP
    uses: shivammathur/setup-php@v2
    with:
      php-version: '8.2'

  - name: Install Composer dependencies
    run: composer install --no-interaction --prefer-dist --optimize-autoloader

  - name: List files in runtimes directory
    run: ls -la ./vendor/laravel/sail/runtimes/8.3

  - name: Set up Docker Buildx
    uses: docker/setup-buildx-action@v2

  - name: Login to Docker Hub
    uses: docker/login-action@v2
    with:
      username: ${{ secrets.DOCKER_USERNAME }}
      password: ${{ secrets.DOCKER_PASSWORD }}

  - name: Build and push Docker image
    uses: docker/build-push-action@v3
    with:
      context: .
      file: ./vendor/laravel/sail/runtimes/8.3/Dockerfile
      push: true
      tags: marcellopato/webroker:latest
      build-args: |
        WWWGROUP=1000

deploy:
runs-on: ubuntu-latest
needs: build

steps:
  - name: Checkout code
    uses: actions/checkout@v3

  - name: Deploy to EC2
    uses: appleboy/[email protected]
    with:
      host: ${{ secrets.EC2_HOST }}
      username: ${{ secrets.EC2_USER }}
      key: ${{ secrets.EC2_KEY }}
      port: ${{ secrets.EC2_PORT }}
      script: |
        docker pull marcellopato/webroker:latest
        docker stop webroker || true
        docker rm webroker || true
        docker run -d --name webroker -p 80:8000 marcellopato/webroker:latest

And down here we can see the error while running tha Action:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> 59 | COPY start-container /usr/local/bin/start-container
60 | COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
61 | >>> COPY php.ini /etc/php/8.3/cli/conf.d/99-sail.ini
62 | RUN chmod +x /usr/local/bin/start-container
63 |
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of
ref v887cgr95ybaz3q64gl0c2lo9::vwav0i7uupd474mws0jlq4xv9: "/php.ini": not found
Error: buildx failed with: ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref v887cgr95ybaz3q64gl0c2lo9::vwav0i7uupd474mws0jlq4xv9: "/php.ini": not found
</code>
<code> 59 | COPY start-container /usr/local/bin/start-container 60 | COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf 61 | >>> COPY php.ini /etc/php/8.3/cli/conf.d/99-sail.ini 62 | RUN chmod +x /usr/local/bin/start-container 63 | -------------------- ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref v887cgr95ybaz3q64gl0c2lo9::vwav0i7uupd474mws0jlq4xv9: "/php.ini": not found Error: buildx failed with: ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref v887cgr95ybaz3q64gl0c2lo9::vwav0i7uupd474mws0jlq4xv9: "/php.ini": not found </code>
  59 |     COPY start-container /usr/local/bin/start-container
  60 |     COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
  61 | >>> COPY php.ini /etc/php/8.3/cli/conf.d/99-sail.ini
  62 |     RUN chmod +x /usr/local/bin/start-container
  63 |     
  --------------------
 ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of 
 ref v887cgr95ybaz3q64gl0c2lo9::vwav0i7uupd474mws0jlq4xv9: "/php.ini": not found
 Error: buildx failed with: ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref v887cgr95ybaz3q64gl0c2lo9::vwav0i7uupd474mws0jlq4xv9: "/php.ini": not found

The rest of the docker files are all from Laravel Sail and still originals.
Anyone?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật