Skip to content

使用gitlab-ci.yml想使用image出現問題 #256

@WANGCHIENCHIH

Description

@WANGCHIENCHIH

建立ci的yml

gpt-code-review:
    only:
        - merge_requests
    tags:
        - docker
    image: ghcr.io/appleboy/codegpt:latest
    stage: test
    script:
    - codegpt version

出現錯誤
failed to check if config folder /home/codegpt/.config/codegpt is a directory: stat /home/codegpt/.config/codegpt: no such file or directory

為了解決問題yml加入
mkdir -p /home/codegpt/.config/codegpt

會出現
mkdir: can't create directory '/home/codegpt/': Permission denied

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions