Skip to content

Container image fails when home dir changed, e.g. github actions #53

@andrewbelcher

Description

@andrewbelcher

Running osnap in github actions fails, it gets stuck attempting to download chrome.

The reason it can't find it is because chrome is in /root/..., but is then accessed via ~/... or $HOME/.... GitHub Actions overrides the home dir to /github/home, and so it fail to find the already installed chrome.

Adding the following step to the job makes everything work perfectly:

      - name: Copy osnap chromium into home
        run: mv /root/osnap* ~/

A couple potential ideas to mitigate this:

  • Use a full absolute path to the chrome install, i.e. /root/...
  • Perhaps having an actual run in the project actions - currently it just does osnap --help=plain which checks it's installed, but doesn't trigger a dependency check, e.g. chrome

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