Pcrumley/update actions #318
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build docker image | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- Dockerfile | |
- Makefile | |
- .github/workflows/docker.yaml | |
jobs: | |
build: | |
name: Build docker image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Build image | |
run: | | |
docker build -t libsbp-build --build-arg UID=$(id -u) - <Dockerfile | |
- name: List images | |
run: docker images | |
- name: Run make all inside image | |
run: | | |
docker run --rm -v $PWD:/mnt/workspace -e TOX_PARALLEL_NO_SPINNER=1 \ | |
-t libsbp-build:latest make all |