Skip to content

Run actions locally using Github Actions container gcr.io/github-actions-images/action-runner #47

@dougnukem

Description

@dougnukem

I noticed that github actions are run using the following container: gcr.io/github-actions-images/action-runner

$ docker run gcr.io/github-actions-images/action-runner:latest --help
Usage of action-runner:
  -action-id string
    	Unique identifier for action execution
  -debug
    	Indicates whether to output Debug logs
  -entrypoint string
    	Overwrite the default ENTRYPOINT of the image
  -env-keys string
    	Specifies which environment variables to copy to container (defaults to all)
  -forward-mount value
    	Mount paths to forward
  -image string
    	Which image to run
  -reporting-url string
    	URL to report progress
  -secret-keys string
    	Environment variable keys to filter from output (comma-separated
  -signing-key string
    	Path to signing key
  -working-dir string
    	Working directory for container

Here's an example run on github:

It might be useful to keep in sync local functionality by matching what the real github actions uses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    meta/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