I was using this repo to run an Airflow image and noticed these lines in the Github workflow:
- run: docker build -t "${PWD##*/}" .
- run: docker run "${PWD##*/}" python -V
- run: docker run "${PWD##*/}" version
I understand that docker run
takes arguments of the form [OPTIONS] IMAGE [COMMAND] [ARG...]
, so I know that the image is being determined by "${PWD##*/}"
, but I am not sure what this is actually doing.
I thought it might be part of the YAML spec for Github Actions but I was unable to find a match in the documentation. After looking at the documentation for docker run
I am unsure of where to look next.
What does "${PWD##*/}"
signify?