Hey everyone,
im trying to do a “docker run -v” with a volume inside a container but the mounted directory seems to come back empty.
name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: lambci/lambda:build-nodejs12.x
steps:
- uses: actions/checkout@v2
# Runs a set of commands using the runners shell
- name: Build
run: |
pwd
ls -lah $GITHUB_WORKSPACE/lambda/hooks
docker run -v "$GITHUB_WORKSPACE/lambda/hooks":/var/task bash ls -lah /var/task
The last ls -lah executed with the bash
image just returns an empty directory whereas the first ls -lah $GITHUB_WORKSPACE/lambda/hooks
shows all the files existing.
Is it possible to mount again inside a running container?