Задать вопрос
@quiker

Почему не обновляет подмодуль на GitHub Actions?

Нет возможности обновить подмодуль при билде образа
Выдавал изначально деплой ключ, потом уже сделал токен, результата нет, пробовал изначально обновлять
Может кто сталкивался?

Самый дефолтный пайплайн с доки
if: ${{ github.event.workflow_run.conclusion == 'success' }}
    runs-on: ubuntu-latest

    steps:
      -
        name: Set up QEMU
        uses: docker/setup-qemu-action@v2
      -
        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_USER }}
          password: ${{ secrets.DOCKER_PASSWORD }}
      - 
        name: Build and push
        uses: docker/build-push-action@v3
        with:
          push: true
          tags: ${{ secrets.DOCKER_USER }}/${{ secrets.REPO_NAME }}:latest
          secrets: |
            # Вот тут пробую повторно залогиниться
            GIT_AUTH_TOKEN=${{ secrets.GIT_TOKEN }}


И Логи непосредственно
# Build and push job

spoiler

Buildx version
/usr/bin/docker buildx build --iidfile /tmp/docker-build-push-2FmasY/iidfile --secret id=GIT_AUTH_TOKEN,src=/tmp/docker-build-push-2FmasY/tmp-2602-2neItP2Rt3XX --tag ***/***:latest --metadata-file /tmp/docker-build-push-2FmasY/metadata-file --push https://github.com/github-user/Main-Module.git#05e4c44c1b12dba38c99243bd2f57e53ce970412
#1 [internal] load git source https://github.com/github-user/Main-Module.git#05e4c44c1b12dba38c99243bd2f57e53ce970412
#0 0.112 Initialized empty Git repository in /var/lib/buildkit/runc-overlayfs/snapshots/snapshots/1/fs/
#1 0.175 fatal: Not a valid object name 05e4c44c1b12dba38c99243bd2f57e53ce970412^{commit}
#1 1.002 From https://github.com/github-user/Main-Module
#1 1.002  * [new branch]      fixes      -> origin/second-branch
#1 1.002  * [new branch]      main       -> origin/main
#1 1.110 Submodule 'Submodule' (git@github.com:github-user/Submodule.git) registered for path 'Submodule'
#1 1.112 Cloning into '/var/lib/buildkit/runc-overlayfs/snapshots/snapshots/2/fs/Submodule'...
#1 1.436 Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
#1 1.604 git@github.com: Permission denied (publickey).
#1 1.605 fatal: Could not read from remote repository.
#1 1.605 
#1 1.605 Please make sure you have the correct access rights
#1 1.605 and the repository exists.
#1 1.606 fatal: clone of 'git@github.com:github-user/Submodule.git' into submodule path '/var/lib/buildkit/runc-overlayfs/snapshots/snapshots/2/fs/Submodule' failed
#1 1.606 Failed to clone 'Submodule'. Retry scheduled
#1 1.608 Cloning into '/var/lib/buildkit/runc-overlayfs/snapshots/snapshots/2/fs/Submodule'...
#1 2.108 git@github.com: Permission denied (publickey).
#1 2.109 fatal: Could not read from remote repository.
#1 2.109 
#1 2.109 Please make sure you have the correct access rights
#1 2.109 and the repository exists.
#1 2.110 fatal: clone of 'git@github.com:github-user/Submodule.git' into submodule path '/var/lib/buildkit/runc-overlayfs/snapshots/snapshots/2/fs/Submodule' failed
#1 2.110 Failed to clone 'Submodule' a second time, aborting
#1 ERROR: failed to update submodules for https://github.com/github-user/Main-Module.git: exit status 1
------
 > [internal] load git source https://github.com/github-user/Main-Module.git#05e4c44c1b12dba38c99243bd2f57e53ce970412:
#1 1.606 fatal: clone of 'git@github.com:github-user/Submodule.git' into submodule path '/var/lib/buildkit/runc-overlayfs/snapshots/snapshots/2/fs/Submodule' failed
#1 1.606 Failed to clone 'Submodule'. Retry scheduled
#1 1.608 Cloning into '/var/lib/buildkit/runc-overlayfs/snapshots/snapshots/2/fs/Submodule'...
#1 2.108 git@github.com: Permission denied (publickey).
#1 2.109 fatal: Could not read from remote repository.
#1 2.109 
#1 2.109 Please make sure you have the correct access rights
#1 2.109 and the repository exists.
#1 2.110 fatal: clone of 'git@github.com:github-user/Submodule.git' into submodule path '/var/lib/buildkit/runc-overlayfs/snapshots/snapshots/2/fs/Submodule' failed
#1 2.110 Failed to clone 'Submodule' a second time, aborting
------
ERROR: failed to solve: failed to read dockerfile: failed to update submodules for https://github.com/github-user/Main-Module.git: exit status 1
Error: buildx failed with: ERROR: failed to solve: failed to read dockerfile: failed to update submodules for https://github.com/github-user/Main-Module.git: exit status 1

  • Вопрос задан
  • 146 просмотров
Подписаться 1 Средний 3 комментария
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы
22 дек. 2024, в 20:40
10000 руб./за проект
22 дек. 2024, в 20:34
3000 руб./за проект
22 дек. 2024, в 20:12
10000 руб./за проект