Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Problems with self-hosted runners #91

@tegorov

Description

@tegorov

There are two problems with self-hosted runners:

  1. Every run creates a new docker image.
  2. A container is run as root user, that causes some problems with the files in future runs

The first problem is solved by building a docker image and referencing it in a workflow:

- name: 'Create pull request'
  uses: docker://ghcr.io/tegorov/pull-request:v2.6.2
  with:
     source_branch: develop
  ...

The second problem is solved by passing USER_ID parameter in a container:

- name: 'Create pull request'
  uses: docker://ghcr.io/tegorov/pull-request:v2.6.2
  with:
     source_branch: develop
     ...
  env:
     USER_ID: 1000

Here is my pull request as an example #90

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions