Skip to content

Deployment using .gitlab‑ci.yml fails to access the config folder #256

@WANGCHIENCHIH

Description

@WANGCHIENCHIH

Create the CI YAML

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

Error shown

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

To resolve the issue, add to the YAML

mkdir -p /home/codegpt/.config/codegpt

but then you get

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