Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is runs-on ignored? #106

Closed
ghost opened this issue Feb 26, 2020 · 2 comments
Closed

Is runs-on ignored? #106

ghost opened this issue Feb 26, 2020 · 2 comments
Labels
area/runner Relating to errors in the runner kind/question Further information is requested meta/duplicate This issue or pull request already exists

Comments

@ghost
Copy link

ghost commented Feb 26, 2020

I am getting my workflow run on node image, even though it requires ubuntu:

❯ act
[Foo/build] πŸš€  Start image=node:12.6-buster-slim
[Foo/build]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Foo/build]   🐳  docker cp src=/Users/foo/Sites/Foo/. dst=/github/workspace
[Foo/build] ⭐  Run Install MySQL Client
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:1 http://security-cdn.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Get:5 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [181 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [7380 B]
Fetched 8331 kB in 3s (2453 kB/s)
Reading package lists... Done
Building dependency tree       !
Reading state information... Done
| 35 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       !
Reading state information... Done
| Package libmysqlclient-dev is not available, but is referred to by another package.
| This may mean that the package is missing, has been obsoleted, or
| is only available from another source
| However the following packages replace it:
|   libmariadb-dev-compat libmariadb-dev
|
| Package mysql-client-5.7 is not available, but is referred to by another package.
| This may mean that the package is missing, has been obsoleted, or
| is only available from another source
| However the following packages replace it:
|   mariadb-server-core-10.3 mariadb-client-10.3
|
| E: Package 'mysql-client-5.7' has no installation candidate
| E: Package 'libmysqlclient-dev' has no installation candidate
[Foo/build]   ❌  Failure - Install MySQL Client
Error: exit with `FAILURE`: 100

This is stripped down workflow:

❯ cat .github/workflows/foo.yml
name: Foo

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Install MySQL Client
      run: |
        apt update
        apt install mysql-client-5.7 libmysqlclient-dev
@cplee
Copy link
Contributor

cplee commented Feb 26, 2020

See here: https://github.com/nektos/act#runners

You can customize the image that is used for each runs-on

@cplee cplee added kind/question Further information is requested area/runner Relating to errors in the runner meta/duplicate This issue or pull request already exists labels Feb 27, 2020
@cplee
Copy link
Contributor

cplee commented Mar 2, 2020

Closing this as a duplicate of #107

@cplee cplee closed this as completed Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/runner Relating to errors in the runner kind/question Further information is requested meta/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant