[GH-ISSUE #518] Specified platform/image is not honored #350

Closed
opened 2026-03-01 21:42:35 +03:00 by kerem · 2 comments
Owner

Originally created by @CodeSpent on GitHub (Feb 4, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/518

When specifying a platform/image with act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04 act will still use the previously configured catthehacker/ubuntu:act-latest rather than the specified image.

[Deploy to Amazon ECS/Build NGINX Image] 🚀  Start image=catthehacker/ubuntu:act-latest
[Deploy to Amazon ECS/Build NGINX Image]   🐳  docker run image=catthehacker/ubuntu:act-latest entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Deploy to Amazon ECS/Build NGINX Image]   🐳  docker cp src=/Users/codespent/Development/devstreams/devstreamsio-api/. dst=/github/workspace
[Deploy to Amazon ECS/Build NGINX Image] ⭐  Run Checkout
[Deploy to Amazon ECS/Build NGINX Image]   ✅  Success - Checkout
[Deploy to Amazon ECS/Build NGINX Image] ⭐  Run Configure AWS credentials
[Deploy to Amazon ECS/Build NGINX Image]   ☁  git clone 'https://github.com/aws-actions/configure-aws-credentials' # ref=v1
[Deploy to Amazon ECS/Build NGINX Image]   🐳  docker cp src=/Users/codespent/.cache/act/aws-actions-configure-aws-credentials@v1 dst=/actions/
[Deploy to Amazon ECS/Build NGINX Image]   ⚙  ::add-mask::497087803026
[Deploy to Amazon ECS/Build NGINX Image]   ⚙  ::set-output:: aws-account-id=xxxxxxxx
[Deploy to Amazon ECS/Build NGINX Image]   ✅  Success - Configure AWS credentials
[Deploy to Amazon ECS/Build NGINX Image] ⭐  Run Login to Amazon ECR
[Deploy to Amazon ECS/Build NGINX Image]   ☁  git clone 'https://github.com/aws-actions/amazon-ecr-login' # ref=v1
[Deploy to Amazon ECS/Build NGINX Image]   🐳  docker cp src=/Users/codespent/.cache/act/aws-actions-amazon-ecr-login@v1 dst=/actions/
[Deploy to Amazon ECS/Build NGINX Image]   ⚙  ::set-output:: registry=xxxxxxxx.dkr.ecr.us-east-1.amazonaws.com
[Deploy to Amazon ECS/Build NGINX Image]   ❗  ::error::Unable to locate executable file: docker. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
[Deploy to Amazon ECS/Build NGINX Image]   ❌  Failure - Login to Amazon ECR
Error: exit with `FAILURE`: 1

System is an M1 Mac Mini, Mac OS 11.0.1, act version 0.2.19 in zsh.

Originally created by @CodeSpent on GitHub (Feb 4, 2021). Original GitHub issue: https://github.com/nektos/act/issues/518 When specifying a platform/image with `act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04` act will still use the previously configured `catthehacker/ubuntu:act-latest` rather than the specified image. ``` [Deploy to Amazon ECS/Build NGINX Image] 🚀 Start image=catthehacker/ubuntu:act-latest [Deploy to Amazon ECS/Build NGINX Image] 🐳 docker run image=catthehacker/ubuntu:act-latest entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Deploy to Amazon ECS/Build NGINX Image] 🐳 docker cp src=/Users/codespent/Development/devstreams/devstreamsio-api/. dst=/github/workspace [Deploy to Amazon ECS/Build NGINX Image] ⭐ Run Checkout [Deploy to Amazon ECS/Build NGINX Image] ✅ Success - Checkout [Deploy to Amazon ECS/Build NGINX Image] ⭐ Run Configure AWS credentials [Deploy to Amazon ECS/Build NGINX Image] ☁ git clone 'https://github.com/aws-actions/configure-aws-credentials' # ref=v1 [Deploy to Amazon ECS/Build NGINX Image] 🐳 docker cp src=/Users/codespent/.cache/act/aws-actions-configure-aws-credentials@v1 dst=/actions/ [Deploy to Amazon ECS/Build NGINX Image] ⚙ ::add-mask::497087803026 [Deploy to Amazon ECS/Build NGINX Image] ⚙ ::set-output:: aws-account-id=xxxxxxxx [Deploy to Amazon ECS/Build NGINX Image] ✅ Success - Configure AWS credentials [Deploy to Amazon ECS/Build NGINX Image] ⭐ Run Login to Amazon ECR [Deploy to Amazon ECS/Build NGINX Image] ☁ git clone 'https://github.com/aws-actions/amazon-ecr-login' # ref=v1 [Deploy to Amazon ECS/Build NGINX Image] 🐳 docker cp src=/Users/codespent/.cache/act/aws-actions-amazon-ecr-login@v1 dst=/actions/ [Deploy to Amazon ECS/Build NGINX Image] ⚙ ::set-output:: registry=xxxxxxxx.dkr.ecr.us-east-1.amazonaws.com [Deploy to Amazon ECS/Build NGINX Image] ❗ ::error::Unable to locate executable file: docker. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable. [Deploy to Amazon ECS/Build NGINX Image] ❌ Failure - Login to Amazon ECR Error: exit with `FAILURE`: 1 ``` System is an M1 Mac Mini, Mac OS 11.0.1, act version 0.2.19 in zsh.
kerem closed this issue 2026-03-01 21:42:35 +03:00
Author
Owner

@catthehacker commented on GitHub (Feb 4, 2021):

@CodeSpent Your workflow is using ubuntu-latest, not ubuntu-18.04 therefore you need to specify platform as -P ubuntu-latest=nektos/act-environments-ubuntu:18.04

<!-- gh-comment-id:772970779 --> @catthehacker commented on GitHub (Feb 4, 2021): @CodeSpent Your workflow is using `ubuntu-latest`, not `ubuntu-18.04` therefore you need to specify platform as `-P ubuntu-latest=nektos/act-environments-ubuntu:18.04`
Author
Owner

@CodeSpent commented on GitHub (Feb 4, 2021):

Ah, what a tired gotcha, thanks for catching!

<!-- gh-comment-id:773259987 --> @CodeSpent commented on GitHub (Feb 4, 2021): Ah, what a tired gotcha, thanks for catching!
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#350
No description provided.