Skip to content

Issue: act -P flag not working to switch platform/image #692

@danbadds38

Description

@danbadds38

Act version

commit version 29ea8cfc4e00401b144cd29643a61ca089efd7e9

act version 0.2.22

Expected behavior

to use ubuntu-18.04=nektos/act-environments-ubuntu:18.04

Actual behavior

uses image=node:12.20.1-buster-slim

user@GT192:~/code/drm-docker/drm-case-v2$ act --platform ubuntu-18.04=nektos/act-environments-ubuntu:18.04
[Docker CI & Codeception Suite/build] 🚀  Start image=node:12.20.1-buster-slim
[Docker CI & Codeception Suite/build] 🐳  docker run image=node:12.20.1-buster-slim platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Docker CI & Codeception Suite/build] ⭐  Run actions/checkout@v2

~/.actrc dump

user@GT192:~/code/drm-docker/drm-case-v2$ cat ~/.actrc 
-P ubuntu-18.04=nektos/act-environments-ubuntu:18.04

Workflow and/or repository

workflow
name: example workflow

on: [push]

jobs:
  [...]

Steps to reproduce

Choose Large Image

user@GT192:~/code/drm-docker/drm-case-v2$ act -n
? Please choose the default image you want to use with act:

  - Large size image: +20GB Docker image, includes almost all tools used on GitHub Actions (IMPORTANT: currently only ubuntu-18.04 platform is available)
  - Medium size image: ~500MB, includes only necessary tools to bootstrap actions and aims to be compatible with all actions
  - Micro size image: <200MB, contains only NodeJS required to bootstrap actions, doesn't work with all actions

Default image and other options can be changed manually in ~/.actrc (please refer to https://github.com/nektos/act#configuration for additional information about file structure) Large
*DRYRUN* [Docker CI & Codeception Suite/build] 🚀  Start image=node:12.20.1-buster-slim
*DRYRUN* [Docker CI & Codeception Suite/build]   🐳  docker run image=node:12.20.1-buster-slim platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
*DRYRUN* [Docker CI & Codeception Suite/build] ⭐  Run actions/checkout@v2
*DRYRUN* [Docker CI & Codeception Suite/build]   ☁  git clone 'https://github.com/actions/checkout' # ref=v2
*DRYRUN* [Docker CI & Codeception Suite/build]   ✅  Success - actions/checkout@v2
*DRYRUN* [Docker CI & Codeception Suite/build] ⭐  Run Deploy Dockerized Environment & Run Integration Tests.
*DRYRUN* [Docker CI & Codeception Suite/build]   ✅  Success - Deploy Dockerized Environment & Run Integration Tests.

act output

Log
PASTE YOUR LOG HERE

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't workingmeta/need-more-infoProvided information is insufficient

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions