File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 29
29
username : ${{ secrets.DOCKERHUB_USERNAME }}
30
30
password : ${{ secrets.DOCKERHUB_TOKEN }}
31
31
32
- - name : Build and export to Docker
32
+ - name : Build Docker image
33
33
uses : docker/build-push-action@v3
34
34
with :
35
35
context : .
38
38
cache-from : type=registry,ref=${{ env.DOCKERHUB_REPO }}:buildcache
39
39
tags : ${{ env.DOCKERHUB_REPO }}:testing
40
40
41
+ # push cache that includes production and testing
42
+ - name : Push buildcache to DockerHub
43
+ uses : docker/build-push-action@v2
44
+ with :
45
+ context : .
46
+ cache-to : type=registry,ref=${{ env.DOCKERHUB_REPO }}:buildcache,mode=max
47
+
41
48
- name : Test pull request
42
49
if : github.event.pull_request.merged == false
43
50
run : |
52
59
push : true
53
60
tags : ${{ env.DOCKERHUB_REPO }}:latest
54
61
55
- # push cache that includes production and testing
56
- - name : Push buildcache to DockerHub on merge
57
- uses : docker/build-push-action@v2
58
- if : github.event.pull_request.merged == true
59
- with :
60
- context : .
61
- cache-to : type=registry,ref=${{ env.DOCKERHUB_REPO }}:buildcache,mode=max
62
62
You can’t perform that action at this time.
0 commit comments