Skip to content

Commit d382c07

Browse files
authored
GH actions cache tfb dockerfile build (#8036)
* GH actions cache build tfb dockerfile * [ci lang-only Pascal] * Testing cache * Testing cache [ci lang-only Pascal] * Testing cache [ci lang-only Pascal] * Testing cache [ci run-all] * Testing dockerfile change [ci lang-only Pascal] * Testing revert change in Dockerfile [ci lang-only Pascal]
1 parent 0f27e10 commit d382c07

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ jobs:
140140
if [ "$RUN_TESTS" ]; then echo "Proceeding to run tests."; else echo 'Skipping test verification.'; fi
141141
- name: Build tfb dockerfile
142142
if: ${{ env.RUN_TESTS }}
143-
run: docker build -t techempower/tfb - < ./Dockerfile;
143+
uses: mattes/cached-docker-build-action@v1
144+
with:
145+
args: " --file ./Dockerfile --tag techempower/tfb ."
146+
cache_key: "${{ hashFiles('./Dockerfile') }}"
144147
- name: Stop services
145148
# Stop services that would claim ports we may need
146149
run: |

0 commit comments

Comments
 (0)