We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6585c0e + 50e0b36 commit 62b8e5bCopy full SHA for 62b8e5b
1 file changed
.github/workflows/dockerimage.yml
@@ -1,16 +1,25 @@
1
name: Check if a Docker image can be built
2
3
-on: [push]
+on:
4
+ push:
5
+ branches: [ devel ]
6
+ pull_request:
7
8
jobs:
9
10
build:
-
11
runs-on: ubuntu-latest
12
13
steps:
14
- uses: actions/checkout@v1
15
+
16
- name: Build the Docker image
17
+ env:
18
+ # @see https://testdriven.io/blog/faster-ci-builds-with-docker-cache/
19
+ CACHE_IMAGE: macbre/index-digest:latest
20
run: |
- docker build . --tag ${{ github.repository }}:$(date +%s)
21
+ docker pull $CACHE_IMAGE
22
+ docker build . \
23
+ --cache-from $CACHE_IMAGE \
24
+ --tag ${{ github.repository }}
25
docker images
0 commit comments