[GH-ISSUE #106] Is runs-on ignored? #72

Closed
opened 2026-03-01 21:39:45 +03:00 by kerem · 3 comments
Owner

Originally created by @ghost on GitHub (Feb 26, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/106

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
Originally created by @ghost on GitHub (Feb 26, 2020). Original GitHub issue: https://github.com/nektos/act/issues/106 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 ```
Author
Owner

@cplee commented on GitHub (Feb 26, 2020):

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

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

<!-- gh-comment-id:591590812 --> @cplee commented on GitHub (Feb 26, 2020): See here: https://github.com/nektos/act#runners You can customize the image that is used for each `runs-on`
Author
Owner

@cplee commented on GitHub (Mar 2, 2020):

Closing this as a duplicate of #107

<!-- gh-comment-id:593485145 --> @cplee commented on GitHub (Mar 2, 2020): Closing this as a duplicate of #107
Author
Owner

@ernstki commented on GitHub (Aug 3, 2025):

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

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

This appears to be https://nektosact.com/usage/runners.html now.

If I'm translating "you can customize the image" correctly, that simply means you can specify it at runtime with -P?

act -P ubuntu-18.04=my-local-ubuntu:18.04

In any event, thanks for a pointer in the right direction, it was key.

<!-- gh-comment-id:3146904370 --> @ernstki commented on GitHub (Aug 3, 2025): > See here: https://github.com/nektos/act#runners > > You can customize the image that is used for each `runs-on` This appears to be https://nektosact.com/usage/runners.html now. If I'm translating "you can customize the image" correctly, that simply means you can specify it at runtime with `-P`? ```bash act -P ubuntu-18.04=my-local-ubuntu:18.04 ``` In any event, thanks for a pointer in the right direction, it was key.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#72
No description provided.