diff --git a/.github/actions/docker-build/action.yml b/.github/actions/docker-build/action.yml index b91668e..c1a37f6 100644 --- a/.github/actions/docker-build/action.yml +++ b/.github/actions/docker-build/action.yml @@ -32,7 +32,7 @@ runs: n=1 until [ "$n" -gt "$tries" ]; do echo "Building the docker image ${{ inputs.docker_image }}-${{ inputs.id }}... try $n..." - if docker build . -f "${{ inputs.docker_image }}/Dockerfile" -t "${{ inputs.docker_image }}-${{ inputs.id }}"; then + if docker build --no-cache . -f "${{ inputs.docker_image }}/Dockerfile" -t "${{ inputs.docker_image }}-${{ inputs.id }}"; then # This can fail if a dangling images cleaning job runs in # parallel. So we try this a couple of times to minimize # conflict. This is because while building, docker creates a diff --git a/.github/workflows/docker-images/README.md b/.github/workflows/docker-images/README.md index 86cfddc..7b8fce8 100644 --- a/.github/workflows/docker-images/README.md +++ b/.github/workflows/docker-images/README.md @@ -17,5 +17,5 @@ passing the appropriate `-f` argument. Here is an example for building the `dco-check` image: ``` -docker build . -f dco-check/Dockerfile -t dco-check +docker build --no-cache . -f dco-check/Dockerfile -t dco-check ```