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

The pre-entrypoint and post-entrypoint of Docker Actions are not Executed #2363

Closed
MarkTurney opened this issue Jun 13, 2024 · 0 comments · Fixed by #2394
Closed

The pre-entrypoint and post-entrypoint of Docker Actions are not Executed #2363

MarkTurney opened this issue Jun 13, 2024 · 0 comments · Fixed by #2394
Labels
kind/bug Something isn't working

Comments

@MarkTurney
Copy link

MarkTurney commented Jun 13, 2024

Bug report info

act version:            0.2.63
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 6
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
Config files:           
        /home/user/.config/act/actrc:
                -P ubuntu-latest=catthehacker/ubuntu:act-latest
                -P ubuntu-22.04=catthehacker/ubuntu:act-22.04
                -P ubuntu-20.04=catthehacker/ubuntu:act-20.04
                -P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
        Go version:            go1.21.10
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:         
        Build settings:
                -buildmode:           exe
                -compiler:            gc
                -ldflags:             -s -w -X main.version=0.2.63 -X main.commit=c959fdd58835195916386b44a87632151a1b491a -X main.date=2024-06-01T02:17:39Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         c959fdd58835195916386b44a87632151a1b491a
                vcs.time:             2024-06-01T02:17:21Z
                vcs.modified:         false
Docker Engine:
        Engine version:        26.1.3
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         systemd
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Manjaro Linux
        OS type:               linux
        OS version:            
        OS arch:               x86_64
        OS kernel:             6.1.92-1-MANJARO
        OS CPU:                6
        OS memory:             7926 MB
        Security options:
                name=seccomp,profile=builtin
                name=cgroupns

Command used with act

git clone [email protected]:MarkTurney/workflow-testing.git
cd workflow-testing
act

Describe issue

When running a Docker Action from act, the "entrypoint" is run as expected, but the "pre-entrypoint" and "post-entrypoint" fail to run.

I have included a custom Workflow and custom Docker Action that replicate the issue.

I have a sample run on github.com of the workflow that successfully runs the Docker Action's "pre-entrypoint" and "post-entrypoint" as expected.

Below is a screengrab of that same workflow successfully running the Docker Action's "pre-entrypoint" as "Pre test custom docker action" and "post-entrypoint" as "Post test custom docker action".

github-workflow-success

Below is a screengrab of running act from the terminal that demonstrates that the Docker Action's "pre-entrypoint" and "post-entrypoint" are not run.

act-missing-pre-and-post-entrypoints

Below is a screengrab of the same workflow running in Forgejo using act that also demonstrates that the Docker Action's "pre-entrypoint" and "post-entrypoint" are skipped.

forgejo-missing-pre-and-post-entrypoints

Link to GitHub repository

https://github.com/MarkTurney/docker-action/tree/master

Workflow content

on: [push]
jobs:
  build-job:
    runs-on: ubuntu-latest
    steps:
    - name: test custom docker action
      id: test-custom-docker-action
      uses: MarkTurney/[email protected]
    - run: ls -all ~

Relevant log output

   ~/work/github/workflow-testing    master  act -v                                                                       ✔ 
DEBU[0000] Handling container host and socket           
DEBU[0000] Defaulting container socket to DOCKER_HOST   
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock' 
DEBU[0000] Loading environment from /home/user/work/github/workflow-testing/.env 
DEBU[0000] Conditional GET for notices etag=d0292ccb-76f3-47a3-8ae2-9b45c8679c80 
DEBU[0000] Loading action inputs from /home/user/work/github/workflow-testing/.input 
DEBU[0000] Loading secrets from /home/user/work/github/workflow-testing/.secrets 
DEBU[0000] Loading vars from /home/user/work/github/workflow-testing/.vars 
DEBU[0000] Evaluated matrix inclusions: map[]           
DEBU[0000] Loading workflows from '/home/user/work/github/workflow-testing/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Found workflow 'testing.yaml' in '/home/user/work/github/workflow-testing/.github/workflows/testing.yaml' 
DEBU[0000] Reading workflow '/home/user/work/github/workflow-testing/.github/workflows/testing.yaml' 
DEBU[0000] Preparing plan with all jobs                 
DEBU[0000] Using the only detected workflow event: push 
DEBU[0000] Planning jobs for event: push                
DEBU[0000] gc: 2024-06-13 14:47:05.940716833 +0400 +04 m=+0.012569040  module=artifactcache
DEBU[0000] Plan Stages: [0xc000412468]                  
DEBU[0000] Stages Runs: [build-job]                     
DEBU[0000] Job.Name: build-job                          
DEBU[0000] Job.RawNeeds: {0 0    <nil> []    0 0}       
DEBU[0000] Job.RawRunsOn: {8 0 !!str ubuntu-latest  <nil> []    5 14} 
DEBU[0000] Job.Env: {0 0    <nil> []    0 0}            
DEBU[0000] Job.If: {0 0  success()  <nil> []    0 0}    
DEBU[0000] Job.Steps: test custom docker action         
DEBU[0000] Job.Steps: ls -all ~                         
DEBU[0000] Job.TimeoutMinutes:                          
DEBU[0000] Job.Services: map[]                          
DEBU[0000] Job.Strategy: <nil>                          
DEBU[0000] Job.RawContainer: {0 0    <nil> []    0 0}   
DEBU[0000] Job.Defaults.Run.Shell:                      
DEBU[0000] Job.Defaults.Run.WorkingDirectory:           
DEBU[0000] Job.Outputs: map[]                           
DEBU[0000] Job.Uses:                                    
DEBU[0000] Job.With: map[]                              
DEBU[0000] Job.Result:                                  
DEBU[0000] Empty Strategy, matrixes=[map[]]             
DEBU[0000] Job Matrices: [map[]]                        
DEBU[0000] Runner Matrices: map[]                       
DEBU[0000] Final matrix after applying user inclusions '[map[]]' 
DEBU[0000] Loading revision from git directory          
DEBU[0000] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec 
DEBU[0000] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec' 
DEBU[0000] using github ref: refs/heads/master          
DEBU[0000] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec 
DEBU[0000] Detected CPUs: 6                             
[testing.yaml/build-job] [DEBUG] evaluating expression 'success()'
[testing.yaml/build-job] [DEBUG] expression 'success()' evaluated to 'true'
[testing.yaml/build-job] 🚀  Start image=catthehacker/ubuntu:act-latest
DEBU[0000] Parallel tasks (0) below minimum, setting to 1 
[testing.yaml/build-job]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[testing.yaml/build-job] [DEBUG]   🐳  docker pull catthehacker/ubuntu:act-latest
[testing.yaml/build-job] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:act-latest' ()
DEBU[0001] Saving notices etag=d0292ccb-76f3-47a3-8ae2-9b45c8679c80 
DEBU[0001] No new notices                               
[testing.yaml/build-job] [DEBUG] Pulling from catthehacker/ubuntu :: act-latest
[testing.yaml/build-job] [DEBUG] Digest: sha256:3f91660c0a49e28ad9f0b0c289f7907caa687a21e2ddfe86ec6ca4c23da48ef4 :: 
[testing.yaml/build-job] [DEBUG] Status: Image is up to date for catthehacker/ubuntu:act-latest :: 
DEBU[0002] Parallel tasks (0) below minimum, setting to 1 
[testing.yaml/build-job]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[testing.yaml/build-job] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:catthehacker/ubuntu:act-latest Volumes:map[] WorkingDir:/home/user/work/github/workflow-testing Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[testing.yaml/build-job] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53 Target:/home/user/work/github/workflow-testing ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[testing.yaml/build-job] [DEBUG] input.NetworkAliases ==> [build-job]
[testing.yaml/build-job] [DEBUG] Created container name=act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53 id=88156413fd570b6b6fe6305be9feac911bdef30c79c62fd41e15c1b1b7f6b234 from image catthehacker/ubuntu:act-latest (platform: )
[testing.yaml/build-job] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
[testing.yaml/build-job]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[testing.yaml/build-job] [DEBUG] Starting container: 88156413fd570b6b6fe6305be9feac911bdef30c79c62fd41e15c1b1b7f6b234
[testing.yaml/build-job] [DEBUG] Started container: 88156413fd570b6b6fe6305be9feac911bdef30c79c62fd41e15c1b1b7f6b234
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/event.json len:2
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[testing.yaml/build-job] [DEBUG] Extracting content to '/var/run/act/'
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job]   ☁  git clone 'https://github.com/MarkTurney/docker-action' # ref=v1.0.8
[testing.yaml/build-job] [DEBUG]   cloning https://github.com/MarkTurney/docker-action to /home/user/.cache/act/[email protected]
[testing.yaml/build-job] [DEBUG] Cloned https://github.com/MarkTurney/docker-action to /home/user/.cache/act/[email protected]
[testing.yaml/build-job] [DEBUG] Checked out v1.0.8
[testing.yaml/build-job] [DEBUG] Read action &{Docker Action Testing  testing docker actions map[] map[] {docker map[]   always()  always() Dockerfile /entrypoint.sh [] []} { }} from 'Unknown'
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.122.52:33619/ CI:true GITHUB_ACTION:test-custom-docker-action GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v1.0.8 GITHUB_ACTION_REPOSITORY:MarkTurney/docker-action GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build-job GITHUB_REF:refs/heads/master GITHUB_REF_NAME:master GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:MarkTurney/workflow-testing GITHUB_REPOSITORY_OWNER:MarkTurney GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:b3949a8cbd65f8487de43b394c63c25ba77af7ec GITHUB_WORKFLOW:testing.yaml GITHUB_WORKSPACE:/home/user/work/github/workflow-testing ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] evaluating expression ''
[testing.yaml/build-job] [DEBUG] expression '' evaluated to 'true'
[testing.yaml/build-job] ⭐ Run Main test custom docker action
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[testing.yaml/build-job] [DEBUG] Extracting content to '/var/run/act'
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] About to run action &{Docker Action Testing  testing docker actions map[] map[] {docker map[]   always()  always() Dockerfile /entrypoint.sh [] []} { }}
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] type=remote-action actionDir=/home/user/.cache/act/[email protected] actionPath= workdir=/home/user/work/github/workflow-testing actionCacheDir=/home/user/.cache/act [email protected] containerActionDir=/var/run/act/actions/[email protected]
[testing.yaml/build-job] [DEBUG] image 'act-markturney-docker-action-v1-0-8-dockeraction:latest' for architecture '' will be built from context '/home/user/.cache/act/[email protected]/
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job]   🐳  docker build -t act-markturney-docker-action-v1-0-8-dockeraction:latest /home/user/.cache/act/[email protected]/
[testing.yaml/build-job] [DEBUG] Building image from '/home/user/.cache/act/[email protected]/'
[testing.yaml/build-job] [DEBUG] Creating archive for build context dir '/home/user/.cache/act/[email protected]/' with relative dockerfile 'Dockerfile'
[testing.yaml/build-job] [DEBUG] Creating image from context dir '/home/user/.cache/act/[email protected]/' with tag 'act-markturney-docker-action-v1-0-8-dockeraction:latest' and platform ''
[testing.yaml/build-job] [DEBUG] Step 1/4 : FROM alpine:3.10
[testing.yaml/build-job] [DEBUG] 
[testing.yaml/build-job] [DEBUG]  ---> e7b300aee9f9
[testing.yaml/build-job] [DEBUG] Step 2/4 : RUN echo "#!/bin/sh -l" > /pre-entrypoint.sh   && echo "echo '++++++++ FROM PRE-ENTRYPOINT.sh +++++++++'" >> /pre-entrypoint.sh   && chmod +x /pre-entrypoint.sh
[testing.yaml/build-job] [DEBUG] 
[testing.yaml/build-job] [DEBUG]  ---> Using cache
[testing.yaml/build-job] [DEBUG]  ---> 3994acaae101
[testing.yaml/build-job] [DEBUG] Step 3/4 : RUN echo "#!/bin/sh -l" > /entrypoint.sh   && echo "echo '++++++++ FROM ENTRYPOINT.sh +++++++++'" >> /entrypoint.sh   && chmod +x /entrypoint.sh
[testing.yaml/build-job] [DEBUG] 
[testing.yaml/build-job] [DEBUG]  ---> Using cache
[testing.yaml/build-job] [DEBUG]  ---> 40c7ea3f7690
[testing.yaml/build-job] [DEBUG] Step 4/4 : RUN echo "#!/bin/sh -l" > /post-entrypoint.sh   && echo "echo '++++++++ FROM POST-ENTRYPOINT.sh +++++++++'" >> /post-entrypoint.sh   && chmod +x /post-entrypoint.sh
[testing.yaml/build-job] [DEBUG] 
[testing.yaml/build-job] [DEBUG]  ---> Using cache
[testing.yaml/build-job] [DEBUG]  ---> c00981404cab
[testing.yaml/build-job] [DEBUG] Unable to handle line: {"aux":{"ID":"sha256:c00981404cabe4841bb1683b8b9289d03d0d6473041ec465a8620041d08a8060"}}
[testing.yaml/build-job] [DEBUG] Successfully built c00981404cab
[testing.yaml/build-job] [DEBUG] Successfully tagged act-markturney-docker-action-v1-0-8-dockeraction:latest
[testing.yaml/build-job]   🐳  docker pull image=act-markturney-docker-action-v1-0-8-dockeraction:latest platform= username= forcePull=false
[testing.yaml/build-job] [DEBUG]   🐳  docker pull act-markturney-docker-action-v1-0-8-dockeraction:latest
[testing.yaml/build-job] [DEBUG] Image exists? true
[testing.yaml/build-job]   🐳  docker create image=act-markturney-docker-action-v1-0-8-dockeraction:latest platform= entrypoint=["/entrypoint.sh"] cmd=[] network="container:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53"
[testing.yaml/build-job] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[GITHUB_SERVER_URL=https://github.com GITHUB_STATE=/var/run/act/workflow/statecmd.txt ACTIONS_CACHE_URL=http://192.168.122.52:33619/ GITHUB_RUN_ID=1 GITHUB_ACTION_REPOSITORY=MarkTurney/docker-action GITHUB_EVENT_NAME=push GITHUB_WORKSPACE=/home/user/work/github/workflow-testing GITHUB_JOB=build-job GITHUB_BASE_REF= GITHUB_GRAPHQL_URL=https://api.github.com/graphql GITHUB_WORKFLOW=testing.yaml GITHUB_RUN_NUMBER=1 GITHUB_REPOSITORY=MarkTurney/workflow-testing GITHUB_STEP_SUMMARY=/var/run/act/workflow/SUMMARY.md GITHUB_SHA=b3949a8cbd65f8487de43b394c63c25ba77af7ec GITHUB_REF_NAME=master GITHUB_API_URL=https://api.github.com GITHUB_OUTPUT=/var/run/act/workflow/outputcmd.txt CI=true GITHUB_ACTION=test-custom-docker-action GITHUB_ACTION_PATH= GITHUB_HEAD_REF= GITHUB_ACTIONS=true GITHUB_REPOSITORY_OWNER=MarkTurney RUNNER_PERFLOG=/dev/null GITHUB_ACTOR=nektos/act GITHUB_RETENTION_DAYS=0 GITHUB_REF_TYPE=branch ImageOS=ubuntu20 ACT=true GITHUB_ACTION_REF=v1.0.8 GITHUB_EVENT_PATH=/var/run/act/workflow/event.json GITHUB_ENV=/var/run/act/workflow/envs.txt GITHUB_REF=refs/heads/master RUNNER_TRACKING_ID= GITHUB_PATH=/var/run/act/workflow/pathcmd.txt RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:act-markturney-docker-action-v1-0-8-dockeraction:latest Volumes:map[] WorkingDir:/home/user/work/github/workflow-testing Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[testing.yaml/build-job] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:container:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53 PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53 Target:/home/user/work/github/workflow-testing ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[testing.yaml/build-job] [DEBUG] input.NetworkAliases ==> []
[testing.yaml/build-job] [DEBUG] Created container name=act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c4-6811d2c6ba49a7c7aaaacf693b306ad3b59464e7f028cc636b64b2f3c3464564 id=19436a9df7b6da0309e4bfb2695ccf15eca6bed37ca3d82e453e619c2480a1ef from image act-markturney-docker-action-v1-0-8-dockeraction:latest (platform: )
[testing.yaml/build-job] [DEBUG] ENV ==> [GITHUB_SERVER_URL=https://github.com GITHUB_STATE=/var/run/act/workflow/statecmd.txt ACTIONS_CACHE_URL=http://192.168.122.52:33619/ GITHUB_RUN_ID=1 GITHUB_ACTION_REPOSITORY=MarkTurney/docker-action GITHUB_EVENT_NAME=push GITHUB_WORKSPACE=/home/user/work/github/workflow-testing GITHUB_JOB=build-job GITHUB_BASE_REF= GITHUB_GRAPHQL_URL=https://api.github.com/graphql GITHUB_WORKFLOW=testing.yaml GITHUB_RUN_NUMBER=1 GITHUB_REPOSITORY=MarkTurney/workflow-testing GITHUB_STEP_SUMMARY=/var/run/act/workflow/SUMMARY.md GITHUB_SHA=b3949a8cbd65f8487de43b394c63c25ba77af7ec GITHUB_REF_NAME=master GITHUB_API_URL=https://api.github.com GITHUB_OUTPUT=/var/run/act/workflow/outputcmd.txt CI=true GITHUB_ACTION=test-custom-docker-action GITHUB_ACTION_PATH= GITHUB_HEAD_REF= GITHUB_ACTIONS=true GITHUB_REPOSITORY_OWNER=MarkTurney RUNNER_PERFLOG=/dev/null GITHUB_ACTOR=nektos/act GITHUB_RETENTION_DAYS=0 GITHUB_REF_TYPE=branch ImageOS=ubuntu20 ACT=true GITHUB_ACTION_REF=v1.0.8 GITHUB_EVENT_PATH=/var/run/act/workflow/event.json GITHUB_ENV=/var/run/act/workflow/envs.txt GITHUB_REF=refs/heads/master RUNNER_TRACKING_ID= GITHUB_PATH=/var/run/act/workflow/pathcmd.txt RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp]
[testing.yaml/build-job]   🐳  docker run image=act-markturney-docker-action-v1-0-8-dockeraction:latest platform= entrypoint=["/entrypoint.sh"] cmd=[] network="container:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53"
[testing.yaml/build-job] [DEBUG] Starting container: 19436a9df7b6da0309e4bfb2695ccf15eca6bed37ca3d82e453e619c2480a1ef
| ++++++++ FROM ENTRYPOINT.sh +++++++++
[testing.yaml/build-job] [DEBUG] Started container: 19436a9df7b6da0309e4bfb2695ccf15eca6bed37ca3d82e453e619c2480a1ef
[testing.yaml/build-job] [DEBUG] Return status: 0
[testing.yaml/build-job] [DEBUG] Removed container: 19436a9df7b6da0309e4bfb2695ccf15eca6bed37ca3d82e453e619c2480a1ef
[testing.yaml/build-job]   ✅  Success - Main test custom docker action
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.122.52:33619/ CI:true GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build-job GITHUB_REF:refs/heads/master GITHUB_REF_NAME:master GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:MarkTurney/workflow-testing GITHUB_REPOSITORY_OWNER:MarkTurney GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:b3949a8cbd65f8487de43b394c63c25ba77af7ec GITHUB_WORKFLOW:testing.yaml GITHUB_WORKSPACE:/home/user/work/github/workflow-testing ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] evaluating expression ''
[testing.yaml/build-job] [DEBUG] expression '' evaluated to 'true'
[testing.yaml/build-job] ⭐ Run Main ls -all ~
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[testing.yaml/build-job] [DEBUG] Extracting content to '/var/run/act'
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Wrote command 

ls -all ~

 to 'workflow/1'
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/1 len:11
[testing.yaml/build-job] [DEBUG] Extracting content to '/var/run/act'
[testing.yaml/build-job]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1] user= workdir=
[testing.yaml/build-job] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1]'
[testing.yaml/build-job] [DEBUG] Working directory '/home/user/work/github/workflow-testing'
| total 32
| drwx------ 1 root root 4096 Jun  8 12:46 .
| drwxr-xr-x 1 root root 4096 Jun 13 10:47 ..
| -rw-r--r-- 1 root root 3106 Oct 15  2021 .bashrc
| drwx------ 3 root root 4096 Jun  8 12:42 .launchpadlib
| drwxr-xr-x 3 root root 4096 Jun  8 12:46 .npm
| -rw-r--r-- 1 root root  161 Jul  9  2019 .profile
| drwx------ 2 root root 4096 Jun  8 12:44 .ssh
| -rw-r--r-- 1 root root  337 Jun  8 12:46 .wget-hsts
[testing.yaml/build-job]   ✅  Success - Main ls -all ~
[testing.yaml/build-job] Cleaning up container for job build-job
[testing.yaml/build-job] [DEBUG] Removed container: 88156413fd570b6b6fe6305be9feac911bdef30c79c62fd41e15c1b1b7f6b234
[testing.yaml/build-job] [DEBUG]   🐳  docker volume rm act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53
[testing.yaml/build-job] [DEBUG]   🐳  docker volume rm act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53-env
[testing.yaml/build-job] 🏁  Job succeeded
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
1 participant